Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects not updating ControlSource
Message
 
To
19/09/2001 04:58:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00558218
Message ID:
00558279
Views:
17
The replies given by others are all good. We use a top-level form so _SCREEN is not around. On this top form is a hidden "dummy" textbox control that we can use to set focus to. Our toolbar's saving checks for this textbox and if present (which it should be), sets focus to it and we don't have to write code to determine the current active control.

Steve


>Hi
>
>My app mainly consists of a Toolbar which talks to the current active form on the app.
>
>If I am in a Textbox and I enter a value, and then click on the Save button in my toolbar - the ControlSource is not updating. I would have thought that as soon as I clicked on the Save button, the Textbox would lose focus and write it's value back to the controlsource.
>
>The only explaination I can think for this is that the Textbox may be losing it's focus, but only because the toolbar has got the focus, but the form still has the textbox as the current focus - am I right in saying that?
>
>Can someone explain this, and if it is what I've said above, what would be the best solution to ensure that Values are written back to the Data?
>
>Thanks
>Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform