Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RightClick event in a Grid
Message
De
26/09/2003 08:07:15
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
À
26/09/2003 07:50:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00832605
Message ID:
00832616
Vues:
31
This message has been marked as the solution to the initial question of the thread.
I don't have VFP8, but I believe that a loop through grid columns is needed in grid Init (I remember something from some threads about BindEvent).

Try:
 Procedure MyRightClick
*          ------------
           MessageBox("RightClick pressed")
 EndProc

 Procedure MyGrid.Init
*          ------ ----

           For i=1 to this.Columncount
                      BindEvent (This.columns(i).text1, "RightClick", ThisForm, "MyRightClick")
           next
 EndProc
>Hi Dorin,
>
>>Or look at BindEvent() function.
>
>I already used the BindEvent() function and liked it, so I did:
>
> Procedure MyRightClick
>*          ------------
>           MessageBox("RightClick pressed")
> EndProc
>
> Procedure MyGrid.Init
>*          ------ ----
>           BindEvent (This, "RightClick", ThisForm, "MyRightClick")
> EndProc
>
>But it didn't work. Is that what I should do?
>
>Thanks for your reply!
>
>Fernando
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform