Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rightclick menu
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01071462
Message ID:
01071835
Views:
19
>*** 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?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform