Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning code to Grid methods
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00829171
Message ID:
00829173
Vues:
23
>I have a grid with up to 100 columns (undetermined initially).
>I am using visual form designer. Is there some simple way
>to assign common code to a method - for example the
>ThisForm.Grid1.Column(I).Text1.MouseDown method - for each
>column without having to bring up each Text1.MouseDown method
>and writing the same lines in each case for all columns?
>
>Thanks for your help.


If using VFP 8 you should look at the BINDEVENT() in the VFP 8 it has an example for the resize that you should be able to change to work with the grid. If not you could subclass the textbox and put the code in the subclass and add the new subclassed textbox to the grid columns. Or if you don't want any of the above you can use SYS(1270) and WriteMethod to write the code in each method.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform