Subject | TIB_Grid: DoubleClick not recognized |
---|---|
Author | pqrob |
Post date | 2007-08-09T12:01:57Z |
Problem: Clicking on the first row of a TIB_Grid will not fire the
OnDblClick event when IndicateTitle is set to false.
I located the problem in IB_Grid.pas in the method
TIB_CustomGrid.MouseDown.
Code:
=====
...
if FWasDblClick then
begin
if ( Cell.X > 0 ) or ( Cell.Y > 0 ) then begin
DblClick;
FMouseIsDown := true;
end;
...
=====
I just replaced the ">" with ">=" which works almost fine, but now the
DoubleClick-Event is also fired by DoubleClicking on the TitleRow when
IndicateTitle ist set to true, which is probably unwanted.
A perfect solution should differentiate between IndicateTitle is true
or false.
Regards,
Frank
OnDblClick event when IndicateTitle is set to false.
I located the problem in IB_Grid.pas in the method
TIB_CustomGrid.MouseDown.
Code:
=====
...
if FWasDblClick then
begin
if ( Cell.X > 0 ) or ( Cell.Y > 0 ) then begin
DblClick;
FMouseIsDown := true;
end;
...
=====
I just replaced the ">" with ">=" which works almost fine, but now the
DoubleClick-Event is also fired by DoubleClicking on the TitleRow when
IndicateTitle ist set to true, which is probably unwanted.
A perfect solution should differentiate between IndicateTitle is true
or false.
Regards,
Frank