Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ToolBar - Problem solved
Message
 
To
13/10/1999 17:59:05
Loren Fedje
Loren D. Fedje & Associates Ltd.
Chilliwack, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00276094
Message ID:
00276750
Views:
23
>I had a problem when using a Toolbar in a Formset and have since solved the problem. Perhaps someone has a better solution but here is how I solved the problem.
>
>This is passed on so that all can benefit.
>
>When using a Formset with a Toolbar, problems will occur if you are using "Buffering,3"
>
>If you navigate using the toolbar without first tabbing out of the field the data entered will not be saved to the record. It appears that the toolbar is not really part of the form and therefore when you click a toolbar item the field that you were in does not loose focus.

This is a typical problem with toolbars, as Jim said, they do not get focus, so do not fire events in the form control. And true for table buffering as well. I solved it by enabling the toolbar Save button in any IAC, then checking to see if it's enabled anywhere it's needed. If toolbar Save is enabled, and the current control has a Setfocus, I setfocus to itself, this fires the valid and lostfocus, and loads the buffer, before doing the tableupdate. Somewhat similar to your solution, in the net result. The biggest single problem I had was when user exited the app while still on an edited control, but this solved that problem, as well...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform