Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the colours of command buttons
Message
 
À
09/09/2004 10:21:11
Brian O'Donovan
Crescent Computers
Cork, Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00940633
Message ID:
00940691
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform