Skip to content

Commit 2d9d3f2

Browse files
Merge pull request #929 from lyynxx/master
Fix for issue #872: TVirtualTreeColumns: Show column header text as h…
2 parents 19b92b2 + d9ca7e7 commit 2d9d3f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/VirtualTrees.pas

+6
Original file line numberDiff line numberDiff line change
@@ -15867,6 +15867,12 @@ procedure TBaseVirtualTree.CMHintShow(var Message: TCMHintShow);
1586715867
if (HitInfo.HitColumn > NoColumn) and not (csLButtonDown in ControlState) then
1586815868
begin
1586915869
HintStr := FHeader.FColumns[HitInfo.HitColumn].FHint;
15870+
if HintStr = '' then
15871+
with FHeader.FColumns[HitInfo.HitColumn] do
15872+
begin
15873+
if (2 * FMargin + CaptionWidth + 1) >= Width then
15874+
HintStr := FCaptionText;
15875+
end;
1587015876
if HintStr <> '' then
1587115877
ShowOwnHint := True
1587215878
else

0 commit comments

Comments
 (0)