General information
Category:
Forms & Form designer
>>>@ 4,2 GET cKEYSTRING ;
>>> PICTURE "@^" ;
>>> FROM aPOPDATA ;
>>> SIZE 3,33 ;
>>> VALID _rau129490() ;
>>> COLOR SCHEME 5, 6
>>>
>>>
>>>* I'm only showing one object. But cKeyString is the 2nd object.
>>>
>>>READ CYCLE MODAL OBJECT 2
>>>
You could use _CUROBJ to initially set the focus to the popup, then in it's when clause, set a variable to send the focus to the first object on the screen, and indicate that this had already been done. Some like
>>
>>IF NOT m.setfocus
>> m.setfocus = .T.
>> _CUROBJ = 1
>>ENDIF
>>
>>An admitted kludge, but...
>>
>
Ahh the land of the kludge. Using your advise, I came up with the following.
I changed the read statement to -
READ CYCLE MODAL OBJECT 1
I added a when fSetFocus() to the 1st object.
FUNCTION fSetFocus
IF !m.SetFocus
m.SetFocus = .T.
KEYBAORD '{TAB}'
ENDIF
Thanks again for your help. This has been a problem for quite a while.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only