Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects not updating ControlSource
Message
De
19/09/2001 05:51:04
 
 
À
19/09/2001 04:58:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00558218
Message ID:
00558227
Vues:
17
Kev,
The behaviour you see is by design and caused by the fact that toolbars (and menus) don't get focus. Therefore the textbox valid() and LostFocus() don't fire when you click on the toolbar. According HackFox, one way of forcing the valid() to fire is to manually set the focus to the same field:
_SCREEN.ActiveForm.ActiveControl.SetFocus()
HTH
>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
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform