At 11:39 PM +0200 3/4/06, Stefan Pantke wrote:
Am 03.04.2006 um 00:50 schrieb Dr Gerard Hammond:

At 1:42 AM +0200 3/4/06, Stefan Pantke wrote:
In a DB-binding framework, I need to update a record, when the user
changed a filed.

Currently, I trigger a write operation, as soon as the field changed some
way: If the user pressed a key.

Although this isn't a problem in general, I'd be happy to save data less
frequently.

Thus: If I get a LostFocus() event, is my Control's data still valid? E.g.,
if the user changed an EditField's contents, will I be able to access the
last *.Text() value? And is the behaviour identical on all platforms?

Is LostFocus() really FocusWillGetLost()?

Hi Stefan,

The LostFocus will fire after the TextChange so the .text will be valid.

Hi Gerard,

in any case? Even if I close a window or quit the app?



Hi Stefan,
Yes I realised after I sent that email that I hadn't tested the window close.

The order is .textChange, .SelChange, .LostFocus, .Close, so your .text property will contain the latest info.
--

Cheers,

Dr Gerard Hammond
Bioinformatic Analyst
Garvan Institute of Medical Research, Sydney, Australia.

If it's worth doing, then it's worth doing with excess.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to