Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I receive a full name of control?
Message
De
21/08/2000 13:20:40
 
 
À
21/08/2000 11:36:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00407278
Message ID:
00407403
Vues:
23
>A form method gridmousedown() is used to set forecolor and backcolor of a grid sell. Since the code for different columns is the same, I use this method with parameter SYS(1272,THIS).

So I assume its something like: GridMouseDown(sys(1272, this) and GridMouseDown() does some Macro expanding to set the properties?

If so, you can do it like this, call GridMouseDown(), like this:

GridMouseDown(this)

Now, GridMouseDown() shoudl except one parameter and change the properties of it like so:

lparameters toObject
toObject.ForeColor = rgb(0, 0, 0)
toObject.BackColor = rgb(255, 255, 255)


This way, you are passing a reference to the object directly, and never need to worry about the name of it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform