Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listboxes, Textboxes, Toolbars...Setting focus()
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Listboxes, Textboxes, Toolbars...Setting focus()
Miscellaneous
Thread ID:
00013794
Message ID:
00013794
Views:
62
Hi All,
Happy thanksgiving if you’re celebrating

Here is my dilemma. I have a standard personnel input screen, nothing fancy, with text boxes of fields I wish to populate. If I need to edit current data in the table, (i.e. change of address), I go to my list box scroll to the name, double click, and proceed editing. No real problems, it *does* work, but not the way I want. However, I also have a toolbar that I use to navigate, save changes, add records, or revert my changes. These all work, but again, not the way I want. Please note, all my navigation methods for the toolbar are in my generic *base* form.

1) Is what I want to do is when I select a tool bar option, (say the next button), I want my list box to refresh with the newly selected and (highlighted) name.
2) If another control has the focus and I select next, that same control maintains focus. I don’t want this, I want the list box to receive the focus and refresh with the newly selected item.
3) When my form first displays, nothing is selected in the list, but the first record fills my text boxes. I want the list box to reflect the first record and have it display as selected, with focus, when created.

If I were to include code in my base form, it would no longer be generic enough to properly function with my forms which do not contain a list box. The *form* is my base form class, with my *info* class added to it. I created the *info* class because there are 4 different forms which use it, but with different data. Also, if the person logging into the program does not have sufficient access, the list box is hidden and the form narrowed accordingly, and my navigation buttons are disabled in my tool bar, but save and revert are still active.

Any help greatly appreciated

Jon
Jon Paskett

Microsoft Certified Systems Engineer
We all have to start somewhere...
Sometimes over again!
Reply
Map
View

Click here to load this message in the networking platform