Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column click
Message
De
14/11/2012 04:52:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
14/11/2012 03:46:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01557111
Message ID:
01557123
Vues:
60
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi All,
>>>
>>>I have a form with a grid. I am programmatically adding columns to the grid using AddObject(). Is there a way to also add some custom code to the header click event of the column I am adding in this way?
>>
>>Bindevent.
>
>Thanks Tore. I can see how to do it but am concerned about this - the user may create many copies of the form I am building, each form's grid can have many columns, each column of each grid on each form would require a bindevent. I am not sure thats a good idea ?

Bindevent is actually very lightweight - it's just an entry in some internal table somewhere - and it's only telling Fox when to run some code. While I don't have much of multiple instances of the same form, I got lots of bindevents on grid headers, grids, and in some cases, at least two or three on each of some 200 controls spread across a 8-page pageframe within the last page of a 9 page pageframe, and it just works and doesn't complain.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform