Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>>*** in Init Event of the form, or there where you build the grid if you do that in separate method:
>>
>>FOR lnFor = 1 TO thisform.Grid1.ColumnCount
>> loColumn = thisform.Grid1.Columns(lnFor)
>> FOR lnForCol = 1 TO loColumn.ControlCount
>> loControl = loColumn.Controls(lnForCol)
>> IF UPPER(loControl.BaseClass) # "HEADER"
>> BINDEVENT(loControl,"RightClick",thisform,"GridRightClick")
>> ENDIF
>> NEXT
>>NEXT
>>
>>*** Make a Method in the form named GridRightClick
>>*** in it put:
>>
>>DO MyShortMenu.MPR && or whatever you want
>>
>>
>>
>>Don't forget to UNBINDEVENTS() when you exit the form.
>
>Why do we want to UNBINDEVENTS(). Do we have to do it in our grid class Destroy method?
No
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement