Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RightClick event in a Grid
Message
From
26/09/2003 08:07:15
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
 
To
26/09/2003 07:50:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00832605
Message ID:
00832616
Views:
29
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform