Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Focus Problems
Message
 
To
04/06/1996 16:36:31
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00001895
Message ID:
00001931
Views:
43
>>>I have a form on which I have placed an OPTION
>>>GROUP with 3 options. I would like the focus to
>>>go to a specific control on the form depending
>>>upon which option the use PRESSES ENTER ON.
>This
>>>seems impossible. The natural place would seem
>>to
>>>be in the KEYPRESS EVENT but the keypress itself
>>>seems to get executed after the focus is set on
>>>the desired control ... causing the focus to be
>>>passed to the next control. There is no problem
>>>with a MOUSE CLICK just the KEYPRESS. Any
>>>thoughts ?
>>
>>
>>I use the VALID method.
>>
>>
>>Tom
>
>Doesn't work.
>
>Let me state the specific circumstances. It is
>simple in theory ... but difficult in practice.
>
>Form contains (in this tab order) a TEXTBOX,
>COMMAND BUTTON, OPTION GROUP. If the user presses
>the ENTER key while the OPTION GROUP is the active
>control I wish control to go to the TEXTBOX.
>I am unable to make this happen.

Don

If I remember right the NODEFAULT keyword will stop the focus from following the Tab order (prevents system events from occuring). The just setfocus().
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform