Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Keypress questions
Message
From
22/03/2000 21:36:43
Dragan Jankovic
Delegate Technology GmbH
Vienna, Austria
 
 
To
22/03/2000 18:16:48
General information
Fórum:
Visual FoxPro
Category:
Formulários & Criador de Formulários
Título:
Miscellaneous
ID da thread:
00349160
ID da mensagem:
00349209
Views:
28
>1 - I have a form with a pageframe on it and a commandgroup. I want my users to be able to do almost everything with keystrokes rather than desk rodents. So I put code like this in the keypress method of the form:
>
> case nKeyCode=122 and thisform.pageframe1.activepage<>3 && ALT 3
> THISFORM.PAGEFRAME1.PAGE1.DEACTIVATE
> thisform.pageframe1.activepage=3
> THISFORM.COMMANDGROUP1.refresh
> nodefault
>
>which works - Provided that the focus is on the Pageframe and not the Commandgroup.
>
>Why should it not work when the commandgroup has focus?
>
>
>2 - I would like to embed certain keypress behaviour like that into all my forms, so I experimented with placing the code in the base class.
>
>This worked as well.
>But...
>I find that if I subsequently try to place further keypress code in a specific form subclassed from the base, then, even though I call the base method with a 'dodefault' and passed parameters, I lose either the base class behaviour or the subclass.
>
Hi Harry,

Have you set form's property KeyPreview to .t.?
Previous
Next
Responder
Mapa
View

Click here to load this message in the networking platform