Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Particular form of cmdbuttons
Message
From
24/01/2001 08:48:41
 
 
To
24/01/2001 08:00:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00467805
Message ID:
00467815
Views:
10
Hi!

There are 2 ways.

One is simple - use bitmaps for image control and change bitmap to 'pressed' bitmap when user presses on control to simulate button functionality. This have disadvantage that any click in the image control will fire clicking event, even when click is outside of triangle.

Another is much more complex, but much more smooth.
You require to make an ActiveX or use existing ActiveX control (Button). Than you require to get windows handle to that button and use Create*Rgn API functions to create reagion you like (Elliptic, triangular etc.), and than SetWindowRgn API function. You will be lucky if it will work, if not - need to write your own painting routine.

>I want to create a particular form of cmdbuttons ( eg triangle ).
>Exist any method for that ?
>Thanks.
>Dorin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform