Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON KEYLABEL DEL DO CLASS??
Message
 
À
24/10/1997 19:23:17
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00055377
Message ID:
00056673
Vues:
37
>Now since I want to have it active within the life of a form class
>instance only, the dismissal should be in form.deactivate, I suppose -
>yes, I've took a look at the help, I should dismiss it there, but in
>unload also, since deactivate doesn't get triggered when the form just
>unloads. Or just put this.deactivate in unload?
Dragan,

If you persue the OKL appraoch to this and Don't do this in the fomr's keypress event you will have many problems with the OKL firing at the wrong times. The user can activate the form, then go click a button or menu option (which does not fire the deactivate of the form) and while that menu opr toolbar code is running they press the OKL key and you OKL routine fires.

If you put the key processing in the form's keypress it will only fire when the user is in the fomr and never when they are anywhere else. The keypress of the fomr will never get called when code is running and therefore it will never interrupt code so you don't have to check for that.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform