Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting focus to object on page frame
Message
From
03/03/1997 07:49:54
 
 
To
28/02/1997 15:33:02
Paul Wei
Fib, State of Michigan
Lansing, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00022439
Message ID:
00022619
Views:
38
>>In VFP 3.0b, with a form containing a page frame with two pages, has anyone had problems with programitically setting the focus to an object on Page1 when Page2 is the active page? I use the following code structure:
>>
>>WITH THISFORM.MyPageframe
>> .ACTIVEPAGE = 1
>> .PAGE1.MyObject.SETFOCUS
>>ENDWITH
>>
>>accompanied by REFRESHes tried in various places to try to get the correct object to receive the focus.
>>
>>Thanks,
>>Bill
>
>Just to let you know that I have the same problem as you using 3.0b. I set the pageframe's ACTIVEPAGE property to 1 and in page 1's ACTIVATE method I set the focus to a command button. When it's all said and done, a textbox winds up with the focus instead of the command button.
>
>Paul

Hi Paul,
This is exactly the problem I am seeing. A different object from the one I specify winds up with the focus, usually 1 or sometimes 2 objects after the object I specify in the Tab sequence. I am not sure what to do about it at this point.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform