Subject Oddity in TIB_LookupCombo
Author Salvatore Besso
hello all,

second post.

I have noticed a strange thing using TIB_LookupCombo. I have defined the
OnChange and OnCloseUp events to transfer focus to another control at any
change of the value or when the drop down list is closed:

begin
if Visible and UnitEdit.Enabled then
UnitEdit.SetFocus
end;

I have applied the same event to both OnChange and OnCloseUp events because
they are of the same type (TNotifyEvent). When I close the drop down list
UnitEdit is correctly focused, but when I select a different value in the
list causing the list to close as well, the focus is not transferred and
remains in the combo. But I have to say that it seems that for a moment
UnitEdit become focused, but immediately after the combo is focused again.
I'm not very sure about this because all happens too fast, like a
flickering, but this is the impression.

Any hints?

Regards
Salvatore