Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting focus to first object in form.
Message
From
20/06/2000 17:04:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Setting focus to first object in form.
Miscellaneous
Thread ID:
00382411
Message ID:
00382411
Views:
63
Hi,

A form class has two properties: cFirstControl and oFirstControl. The first one has the name and the second one a reference to the control that gets focus when we add record to table.

Desired behavior:

1) In Form init, if cFirstControl is name of a valid control, load a reference to it in oFirstControl. Otherwise, load a reference to the first object in tab order that makes sense (no labels, for example).

2) As we navigate in table, if oFirstControl is disabled or otherwise unavailable, focus should go to next object that makes sense in tab order.

TIA,

Alex
Next
Reply
Map
View

Click here to load this message in the networking platform