Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add (programmatically) code in header click event
Message
De
11/07/2007 14:55:51
 
 
À
11/07/2007 14:49:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01239437
Message ID:
01239440
Vues:
12
>I need to add programmatically columns in a grid, also add for each column some code in its header click event. How to do that?
BINDEVENT() and the in the method check the column:
thisform.Grid1.ColumnsCount = thisform.Grid1.ColumnsCount+1
WITH thisform.Grid1.Columns(thisform.Grid1.ColumnsCount)
     .Name = [Something]
     ....
     BINDEVENT(.Header1,[Click], thisform,[ClickHeader])
ENDWITH


* ClickHeader Method

AEVENTS(laEvent,0)
IF laEvent[1,1].Parent.Name == [Something] && That is our column
    WAIT WINDOW {Hurray]
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform