Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic Set Focus
Message
From
27/08/1998 09:02:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/08/1998 10:34:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00130031
Message ID:
00130461
Views:
49
>Hi Rixon ----
>
>The TabIndex property is the element number in the Controls collection, so in essence, by scanning through the Controls collection you are going in TabIndex order and setting focus to the first control, in TabIndex order, that can receive it.

Just crossed my mind - shouldn't we have a possibility to do something like

thisform.taborder[1].SetFocus

I mean, there's the Controls array, but it lists them in the order of instantiation, and lists all the shapes etc, which we don't want to mess with when we're setting focus. I've seen questions like this many times - how do we know which control is the first one?

I've made one custom array property for myself in my base form class - it lists all "tabbable" objects, in exact tab order, so I've solved it for myself. Still, I think we should have had this right out of the box.

back to same old

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

Click here to load this message in the networking platform