Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change the color of a button
Message
De
06/05/1998 17:08:34
 
 
À
06/05/1998 05:16:53
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00097253
Message ID:
00097518
Vues:
22
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform