From 2bfd559a3a994a718e9ce495c994f7842618290b Mon Sep 17 00:00:00 2001 From: blikblum Date: Tue, 23 Oct 2012 02:46:27 +0000 Subject: [PATCH] * Update header state when mouse leaves control git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2581 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../virtualtreeview-new/branches/4.8/VirtualTrees.pas | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas index f35550d15..39bfe835f 100644 --- a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas +++ b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas @@ -10109,6 +10109,15 @@ begin hsHeightTracking, hsHeightTrackPending]; end; // hovering, mouse leave detection + CM_MOUSELEAVE: + with FColumns do + begin + if FHoverIndex > NoColumn then + Invalidate(Items[FHoverIndex]); + FHoverIndex := NoColumn; + FClickIndex := NoColumn; + FDownIndex := NoColumn; + end; //todo: see the difference to below LM_MOUSEMOVE: with TLMMouseMove(Message), FColumns do