Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change color of a command button VFP 6
Message
 
 
To
18/09/2002 14:09:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00701941
Message ID:
00702001
Views:
239
>I have been tring to find how to change the color of a command button but have not been sucessful. How do you change the color of a command button or can it be done.
>

Herman,
Using the normal VFP button, it can't be done. VFP buttons use the Windows color setting for 3D controls. Unfortunately VFP forms also use this color so if you do happen to change it, you buttons and forms will be the same color.

You can programmatically manipulate these settings but you would be changing the user's preferences. The function is SetSysColors.

You can also create a container that behaves like a button and change its backcolor. You can find some examples on the CompuServe forum at http://forums.compuserve.com/vlforums/default.asp?SRV=MSDEVAPPS. Joining is free.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform