Skip to content

Commit

Permalink
Merge pull request #929 from lyynxx/master
Browse files Browse the repository at this point in the history
Fix for issue #872: TVirtualTreeColumns: Show column header text as h…
  • Loading branch information
joachimmarder authored Oct 9, 2019
2 parents 19b92b2 + d9ca7e7 commit 2d9d3f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/VirtualTrees.pas
Original file line number Diff line number Diff line change
Expand Up @@ -15867,6 +15867,12 @@ procedure TBaseVirtualTree.CMHintShow(var Message: TCMHintShow);
if (HitInfo.HitColumn > NoColumn) and not (csLButtonDown in ControlState) then
begin
HintStr := FHeader.FColumns[HitInfo.HitColumn].FHint;
if HintStr = '' then
with FHeader.FColumns[HitInfo.HitColumn] do
begin
if (2 * FMargin + CaptionWidth + 1) >= Width then
HintStr := FCaptionText;
end;
if HintStr <> '' then
ShowOwnHint := True
else
Expand Down

0 comments on commit 2d9d3f2

Please sign in to comment.