Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding the right control
Message
From
13/07/1998 13:17:20
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
To
13/07/1998 12:19:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116218
Message ID:
00116836
Views:
17
Thanks Ed - it worked. One question - Why are the two dots required after the macro? Also I generalized your reply and David's and got the following generic (so far) right click routine for those who are interested.

LPARAMETERS nKeyCode, nShiftAltCtrl

LOCAL cControlName

IF ( nKeyCode = 93 )
* provide Shift+F10 shortcut menu activation
IF UPPER(_screen.activeform.activecontrol.baseclass) == "GRID"
cControlName = _screen.activeform.activecontrol.columns(_screen.activeform.activecontrol.activecolumn).currentcontrol
_screen.activeform.activecontrol.columns(_screen.activeform.activecontrol.activecolumn).&cControlName..rightclick()
ELSE
_screen.activeform.activecontrol.RightClick()
ENDIF
NODEFAULT
ENDIF
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform