Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page frame hot keys
Message
De
29/12/1999 23:16:49
 
 
À
27/12/1999 20:00:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00309001
Message ID:
00310216
Vues:
29
>>>I have a pageframe on a form with 2 pages.
>>>One page has caption \>>>
>>>But the hot keys (Alt+I and Alt+R) don't work at run time in my environment???
>>>
>>>Same thing works OK in a standard form using nothing but VFP base class form and pageframe with no other objects, so must be something I've done.
>>>
>>>My pageframe is subclassed from VFP but has no PEMs. Each page contains a grid. There is no activate code in either page.
>>>
>>>(VFP 6.0 SP3)
>>>
>>>Any clues??
>>
>>ALso, Ed is correct about hotkeys in pageframes, they only work within the frame. To get around this, I put a button on the form with code to activate the page, and give it a hotkey caption. Then just move the button out of visible range.
>
>I use option group :-).

OK, I use a command button with same shortcuts as the pages.
Now what's interesting is that if the click event simply does..
thisform.pf1.page2.setfocus()
the correct page shows *BUT* the pf1.activepage value remains unchanged!
So I need to go
thisform.pf1.activepage=2
as well as the setfocus.

What do you guys do?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform