Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container.SetFocus() issue
Message
From
16/10/2013 08:06:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
15/10/2013 23:32:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01585520
Message ID:
01585587
Views:
51
>>In the Container I added two textboxes. First I add the "second" one and then the "first" one.
>>I give the TabIndex = 1 to the first textbox, which I added after the second.
>
>To keep it generic, could you add code in the container's SetFocus that iterates through the contained controls and
>sets the focus to the one with TabIndex =1?

Such a control may not exist, or may be disabled, invisible, have tabstop=.f., coordinates off viewport, return a .f. from .when()...

I think I tried to do that once, and had to account for all those possibilities, and take the reference to any available candidate with the lowest taborder, or none (had such cases too).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform