Subject [IBO] Post in TIB_Edit OnEnter/OnExit Events blocks input
Author Lukas Zeller
Hello, (sorry for ventually sending again, but it seems the message didn't
get through the first time)

After struggling with this for a year (not all the time :-) I need help
from the experts:

I have a form with several TIB_Edits, connected all to one
TIB_DataSource/TIB_Query.

The underlying IB table has Insert and Update triggers which update
some of the fields.

Now, I want the dataset to be posted when I change fields. So I added an
OnExit event to the TIB_Edits which does a PostRetaining to the dataset
when the field exited was modified.
In order to see the results of the trigger, the Dataset has BufferSynchroFlags
set to [bsAfterEdit,bsAfterInsert] (but not bsBeforeInsert).

If the OnExit is fired by focusing another control using the TAB key,
everything works fine.

If OnExit is fired by focusing another control using the mouse,
the target control will have the blinking insertion mark in it, but WONT ACCEPT
ANY KEYSTROKES. I have to click into the control a second time to make it
editable.

I experimented with:
- using Post instead of PostRetaining,
- moving Post(retaining) into the OnEnter event of the target control,
- doing a FocusControl(TargetControl) at the end of the OnEnter event
It makes no difference.

Probably this setup is basically evil, so the question is generally:
How to archieve that changes get posted (and results made visible)
when user focuses another control.

I am using D6 and IBO4 V4.2Eg. The problem however is as old as the
project itself, which started with IBO 3.6 and D5.

Regards, Lukas
--
Lukas Zeller (luz@...)
-
Synthesis AG, Sustainable Software Concepts
info@..., http://www.synthesis.ch



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
Lukas Zeller (luz@...), Direktwahl +41 1 440 66 01
-
Synthesis AG, Rosengartenstr. 1a, 8037 Zürich
Tel: +41 1 440 66 00, Fax: +41 1 440 66 04
info@..., http://www.synthesis.ch