Hi!
I'd like to change the position of the hint window on a grid. By default it's aligned to the left upper corner to a cell, but I'd like it to be align to the mouse courser, like when you hover the mouse over a button.
I already tried to modify AdvGrid.pas in the THTMLHintWindow.ActivateHint window and that did the trick a few versions ago, but after updating to the latest version that doesn't work anymore.
Any help would be appreciated!
Chris
goa@techno.ms
The place where to change this is in the method
AdvStringGrid.ShowHintProc()
Change:
Change:
if IsComment(RCol,Row,HintStr) then
begin
HintInfo.HintPos.x := HintPos.Right;
HintInfo.HintPos.y := HintPos.Top;
end
else
begin
HintInfo.HintPos.x := HintPos.Left;
HintInfo.HintPos.y := HintPos.Bottom + 6;
end;
to
if IsComment(RCol,Row,HintStr) then
begin
HintInfo.HintPos.x := HintPos.Right;
HintInfo.HintPos.y := HintPos.Top;
end
else
begin
HintInfo.HintPos.x := HintInfo.CursorPos.x;
HintInfo.HintPos.y := HintInfo.CursorPos.y;
end;