Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I _Need_ OKLs
Message
De
03/07/1999 09:21:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00237089
Message ID:
00237167
Vues:
14
Hi Jim

>
>If you want F9 to be the hotkey to a button do it in the form's keypress event with the KeyPreview for the fomr set to .T.;

>
>* KeyPress
>LPARAMETERS nKeyCode ...
>IF nKeyCode = -8 && F9
>   NODEFAULT && Stop VFP key processing
>   Thisform.Whatever.Click()
>ENDIF
>
this looks potentially useful. However, unless I can put the buttons onto a another form like I just tried to, or hide them some other way whilst still allowing them to be called, then thats a non starter because I need too many buttons.

The question here is instead of calling a button's click method, why can't I just call a new form method so that the code becomes:

LPARAMETERS nKeyCode ...
do case
case nKeyCode = -8 && F9
NODEFAULT && Stop VFP key processing
Thisform.mynewmethod()

case nKeyCode = etc...

ENDCASE

Again the important question is: does this overcome the interprocess problem? Does calling a form method force the system to wait until it is safe to proceed?

Harry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform