Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change color of a command button VFP 6
Message
 
 
À
18/09/2002 14:09:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00701941
Message ID:
00702001
Vues:
242
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform