Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the right control
Message
De
13/07/1998 13:17:20
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
13/07/1998 12:19:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116218
Message ID:
00116836
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform