Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON KEYLABEL DEL DO CLASS??
Message
 
To
24/10/1997 19:23:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00055377
Message ID:
00056673
Views:
31
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform