Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Command button use user define method
Message
 
 
À
13/08/2012 02:44:26
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01550379
Message ID:
01550382
Vues:
51
>Hi,
>
>The form have 20 command buttons,
>I want to change the Command Button Background Color by
>using the user define form method, How can I pass the button object to
>the method ? Then the method change background color of the parent object button.
>
>Please advise.
>
>Thanks.
>Derek

You may want to create a new command button class. In this class you'll create a method called

BackgroundColorChange with one line thisform.BackgroundColorChange(this)

And add a new method to the form that will have
lparameters toButton

a reference to the button's object.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform