Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rightclick menu
Message
De
24/11/2005 03:39:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01071462
Message ID:
01071867
Vues:
22
>>*** 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
Fil
Voir

Click here to load this message in the networking platform