Skip to content

Commit d9ca7e7

Browse files
committed
Fix for issue #872: TVirtualTreeColumns: Show column header text as hint in case column is to narrow
1 parent b62976a commit d9ca7e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/VirtualTrees.pas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15860,6 +15860,12 @@ procedure TBaseVirtualTree.CMHintShow(var Message: TCMHintShow);
1586015860
if (HitInfo.HitColumn > NoColumn) and not (csLButtonDown in ControlState) then
1586115861
begin
1586215862
HintStr := FHeader.FColumns[HitInfo.HitColumn].FHint;
15863+
if HintStr = '' then
15864+
with FHeader.FColumns[HitInfo.HitColumn] do
15865+
begin
15866+
if (2 * FMargin + CaptionWidth + 1) >= Width then
15867+
HintStr := FCaptionText;
15868+
end;
1586315869
if HintStr <> '' then
1586415870
ShowOwnHint := True
1586515871
else

0 commit comments

Comments
 (0)