Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access keys do not work with pageframe control
Message
De
20/03/2003 11:17:59
 
 
À
15/09/2002 11:39:23
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00700452
Message ID:
00768122
Vues:
23
>> ... pageframe is having two pages with Atl+d, and Alt + M as their access keys repectively. ... But when I try to access these pages using these access keys it just doesn't work.
>
>Sunny,
>
>According to Help, HotKeys for a Page in a PageFrame only work when the PageFrame already has the focus.
>
>You can trap for the HotKeys with code like this in the KeyPress of the Form:
>
>*!* Form1.KeyPress()
>LPARAMETERS nKeyCode, nShiftAltCtrl
>DO CASE
>	CASE nKeycode = 120
>		THISFORM.pgfPageFrame1.Page1.SETFOCUS()
>	CASE nKeycode = 121
>		THISFORM.pgfPageFrame1.Page2.SETFOCUS()
>ENDCASE
>
Sorry Cindy, but the helptext claims: The KeyPress event does not occur for any combination of keys with the ALT key.

The solution that I propose is the creation of a menu-bar with a menu-pad for each tab of the pageframe. Each bar is then given a hotkey that corresponds to the hotkey of the tab and will invoke a command like _fvp.activeform.PageFrame1.Page1.SETFOCUS().
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform