Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does any body knows how can a make a custom shape button
Message
From
18/12/2000 05:41:44
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00453018
Message ID:
00454603
Views:
32
Hi!

At DEVCON 11 I have seen a sample for new VFP 7 thins. In the sample demonstrated new property of controls - hWND. The sample made a command button elliptic using 2 API functions - CreateEllipticRgn and SetWindowRgn. Handle for SetWindowRgn used from Hwnd property of command button. Whan sample run at VFP 7 - button is really elliptic.

How you can comment that? MS removed this feature in the next releases of VFP7? If yes, I'm quite wondered than...

>Not in VFP, they aren't. I don't think this is any different in VFP 7. The only enhancement I've heard is that the hWnd property is being added to forms. If it were differnt in VFP 7, that would have involved a major rewrite.
>
>>It is correct for many VFP controls, but not for all, I hope. It seems button, textbox, editbox and many otehr controls are standard windows controls. They rendered, yes, but they probably also have HWND. VFP just allows them to draw self in the memory DC, than applies that DC content together with other drawings (for example, drawings of shapes and grids) to the screen. I will make investigation and let know here. Is it not true? Is it true only for VFP 7?
>>
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
Next
Reply
Map
View

Click here to load this message in the networking platform