Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the right control
Message
 
 
À
12/07/1998 22:23:39
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116218
Message ID:
00116673
Vues:
21
Bruce,

My cForm class has this KeyPress method:
LPARAMETERS nKeyCode, nShiftAltCtrl

if ( nKeyCode = 93 )
   * provide Shift+F10 shortcut menu activation
   this.RightClick()
   nodefault
endif
>>Not too much of a fan of OKL anymore because this will interupt any code execution. but:
>>On key label SHIFT+F10 do someproc with This
>>
>>procedure someproc
>>
>>parameter loControl
>>loControl.RightClick()
>
>Thanks Mark. Tried your suggestion and I get "this can only be used within a Method"
>I am not tied to using OKL if you have a better suggestion. I wanted something I could put in my baseform class instead of every control base class. Other than that I'll use anything that works. I do believe that the Shift+F10 is a Windows Standard for right click shortcut.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform