Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus to a container
Message
From
17/06/1999 09:43:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Setfocus to a container
Miscellaneous
Thread ID:
00230851
Message ID:
00230851
Views:
31
ALL:

We've discovered that with a container that has various VFP objects (like textboxes, checkboxes, comboboxes and other containers), that the following instruction

thisform.cntDummy.setfocus

makes the 1st control dropped onto the container active, regardless of the TAB ORDER that I set. Any ideas why? I can explicitly setfocus to "txtMyTextBox", but if I change the order, I have to change the "name".

Another possiblity is to add code to the INIT of the form, that looks at the tab order of the controls in a container and assign the "Name" of the appropriate control to a property. This would eliminate maintaining the "name" in the property if TAB ORDER changes, but adds complexity and takes cycles in bringing up the form.

TIA
Mike
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform