News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Round button / Button with region ?

Started by Apocalyps, March 14, 2007, 09:30:56 AM

Previous topic - Next topic

Apocalyps

Hello,

I have a question, and that is how to create a round button in masm from a bitmap, does it has to be with a region ?

Like so that only the round button is clickable and not the purple part arround it, or like a triangle button.

I know it works with XXControls, but does someone know how i can get this working without it ?

Thnx!  ::)

TNick

Welcome!

You create a round button in masm exactly as you creat it in any other language. :)
As far as I know, you can
- use regions
- create your own control and
     - use trigonometric math to see if a point is inside or outside the circle.
     - define a rectangle that approximate the circle

Nick

PBrennick

Apocalyps,
The attached example shows you how to create buttons that are of all different shapes, sizes and colors. It is exactly what you need, I think.

Paul


[attachment deleted by admin]
The GeneSys Project is available from:
The Repository or My crappy website