LCL: treeview: fix tooltips. Patch by AlexeyT. Issue #32400

git-svn-id: trunk@55868 -
This commit is contained in:
ondrej 2017-09-15 18:36:14 +00:00
parent 286a48d42a
commit 55f15c6a4c

View File

@ -4355,6 +4355,8 @@ var
MaxHintWidth: Integer;
TransparentHints: Boolean;
begin
if not (tvoToolTips in FOptions) then exit;
if FHintWnd=nil then
begin
FHintWnd:=THintWindow.Create(Self);
@ -5571,8 +5573,7 @@ begin
inherited MouseMove(Shift, x, y);
if (tvoAutoInsertMark in FOptions) then
UpdateInsertMark(X,Y);
if (tvoToolTips in FOptions) then
UpdateTooltip(X, Y);
UpdateTooltip(X, Y);
end;
procedure TCustomTreeView.MouseUp(Button: TMouseButton; Shift: TShiftState;