Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro for Dos: Trouble with initial popup selection hi-
Message
From
10/12/1997 21:19:05
 
 
To
10/12/1997 15:56:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00065000
Message ID:
00065182
Views:
55
>>>@ 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
Map
View

Click here to load this message in the networking platform