|Subject||Re: [IBO] Controlling AnnounceFocus|
> The problem is that if I have been using Form1 then Form2,From this description I am supposing that the focus has not moved to a
> then close Form2 and click the updateBar in Form1 it attempts
> to focus a control on invisible Form2. I would like to
> restrict the mechanism so it only works within the
> currently focused form.
data-aware control on Form1 (after closing Form2), so the updatebar
has not had any notification that it needs to change datasources.
You can manually force the change of focus using IB_Session. Access
IB_Session via any of the ibo components (TIB_Query, TIB_Transaction
etc) as IB_Query1.IB_Session. See the online help for TIB_Session,
the various Focused* properties.