[Lazarus] TreeView.MouseLeave issue

Alexey aaa5500 at ya.ru
Fri Jun 30 10:59:56 CEST 2017


procedure TCustomTreeView.MouseLeave;
begin
   FStates:=FStates-[tvsDblClicked,tvsTripleClicked,tvsQuadClicked,
                     tvsEditOnMouseUp,tvsSingleSelectOnMouseUp];
   if Assigned(FHintWnd) and FHintWnd.Visible
   and not PtInRect(ClientRect, ScreenToClient(Mouse.CursorPos)) then
     FHintWnd.Hide;
   inherited MouseLeave;
end;

If it is MouseLeave than mouse cannot be in ClientRect, then condittion 
PtInRect not needed here.

-- 
Regards,
Alexey



More information about the Lazarus mailing list