Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the colours of command buttons
Message
 
To
09/09/2004 10:21:11
Brian O'Donovan
Crescent Computers
Cork, Ireland
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00940633
Message ID:
00940691
Views:
21
Hi Brian,

For VFP version 3..7 check this example:

Subclassing CommandButton control to create BackColor property
http://www.news2news.com/vfp/?example=392

The idea itself is simple: create temporary bitmap file with color background (may be even write a text on it) and pass it to command button's Picture property.

The way it can be realized -- either GDI or GDI+ -- requires some coding, though as you can see can be solved.

Another example using similar approach:

Vertical Label control
http://www.news2news.com/vfp/?example=398
Previous
Reply
Map
View

Click here to load this message in the networking platform