>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement