Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the color of a button
Message
From
06/05/1998 17:08:34
 
 
To
06/05/1998 05:16:53
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00097253
Message ID:
00097518
Views:
21
>How i change the color of a button

Joao:

MicroSoft likes to control all button properties from Windows. David is right, you can change the color of ALL buttons by manipulating the windows configuration file using GetProfile() and WriteProfile().

I infer from your question, however, that you want to display buttons in various colours -- not all buttons in the same color.

If this is the case, you will probably have to create your own button class, since the VFP button class is not going to do that for you.

Some weeks ago there was a fairly extensive discussion here on the Thread about customized button classes -- searching for the expression "button color" ought to bring it up.

Good luck,

JME
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Reply
Map
View

Click here to load this message in the networking platform