You've already forked lazarus-ccr
RxFPC: fix show hint for RxDBGrid cell
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7359 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -5652,15 +5652,15 @@ begin
|
|||||||
if (CellRect_.Bottom > CursorPos.Y) and (CellRect_.Right > CursorPos.X) then
|
if (CellRect_.Bottom > CursorPos.Y) and (CellRect_.Right > CursorPos.X) then
|
||||||
if Assigned(FOnDataHintShow) then
|
if Assigned(FOnDataHintShow) then
|
||||||
begin
|
begin
|
||||||
|
Processed := False;
|
||||||
rec := DataLink.ActiveRecord;
|
rec := DataLink.ActiveRecord;
|
||||||
try
|
try
|
||||||
DataLink.ActiveRecord := Cell.y - 1;
|
DataLink.ActiveRecord := Cell.y - 1;
|
||||||
HintStr_ := tCol.Field.DisplayText;
|
HintStr_ := tCol.Field.DisplayText;
|
||||||
|
FOnDataHintShow(Self, CursorPos, Cell, tCol, HintStr_, Processed);
|
||||||
finally
|
finally
|
||||||
DataLink.ActiveRecord := rec;
|
DataLink.ActiveRecord := rec;
|
||||||
end;
|
end;
|
||||||
Processed := False;
|
|
||||||
FOnDataHintShow(Self, CursorPos, Cell, tCol, HintStr_, Processed);
|
|
||||||
if Processed then
|
if Processed then
|
||||||
HintStr := HintStr_;
|
HintStr := HintStr_;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user