Subject | TIB_LookupCombo/Focus/color |
---|---|
Author | Boris Schlüszler |
Post date | 2002-08-17T20:52:50Z |
Hi!
I have a TIB_Grid with a TIB_LookupCombo as first (most left) column.
TIB_Grid has two events:
procedure TOpForm.GridEnter(Sender: TObject);
begin
TIB_Grid(Sender).CurrentRowColor:=clWindow;
end;
procedure TOpForm.GridExit(Sender: TObject);
begin
TIB_Grid(Sender).CurrentRowColor:=clInfoBk;
end;
The TIB_Grid should change it's CurrentRowColor when entered and set it
back to "normal" when exited.
If the current column is most left (on the TIB_LookupCombo) and I press
the cursor-left-key, focus is lost.
Only the tab-key brings me to some other control and sometimes back
(sometimes not).
This seems to be related to the color change of the current row, because
everyting is normal if the color is not changed. The exit-event seems to
be raised, when pressing cursor-left on column no. 1 (most left).
Any ideas?
Regards, Boris
PS.: news.atkin.com was down for more then a week, wasn't it?
I really missed you, folks!
I have a TIB_Grid with a TIB_LookupCombo as first (most left) column.
TIB_Grid has two events:
procedure TOpForm.GridEnter(Sender: TObject);
begin
TIB_Grid(Sender).CurrentRowColor:=clWindow;
end;
procedure TOpForm.GridExit(Sender: TObject);
begin
TIB_Grid(Sender).CurrentRowColor:=clInfoBk;
end;
The TIB_Grid should change it's CurrentRowColor when entered and set it
back to "normal" when exited.
If the current column is most left (on the TIB_LookupCombo) and I press
the cursor-left-key, focus is lost.
Only the tab-key brings me to some other control and sometimes back
(sometimes not).
This seems to be related to the color change of the current row, because
everyting is normal if the color is not changed. The exit-event seems to
be raised, when pressing cursor-left on column no. 1 (most left).
Any ideas?
Regards, Boris
PS.: news.atkin.com was down for more then a week, wasn't it?
I really missed you, folks!