Subject Re: [IBO] Global GainFocusEvent
Author Geoff Worboys
> In my app I need to know, when the focused DataSource has changed. I
> have found the property TIB_Session.FocusedDataSource, but I havn't
> found any event, that tells me, when the FocusedDataSource has
> changed.

Create an instance of TIB_DataLink in your form constructor or
oncreate event (and of course destroy it in the destructor on
ondestroy event).

Then attach code to the OnReceiveFocus handler of the datalink, and
this handler will receive messages whenenver the focused datasource
changes.

hth

--
Geoff Worboys
Telesis Computing