mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 06:38:13 +02:00
LCL: anchordocking: TlazDockForm: fixed invalidate on MouseLeave
git-svn-id: trunk@14090 -
This commit is contained in:
parent
57ee3d33a0
commit
e08cf5abf5
@ -2834,13 +2834,14 @@ var
|
|||||||
NewMouseState: TDockHeaderMouseState;
|
NewMouseState: TDockHeaderMouseState;
|
||||||
begin
|
begin
|
||||||
Control := FindHeader(X, Y, Part);
|
Control := FindHeader(X, Y, Part);
|
||||||
|
FillChar(NewMouseState,SizeOf(NewMouseState),0);
|
||||||
if (Control <> nil) then
|
if (Control <> nil) then
|
||||||
begin
|
begin
|
||||||
ARect := GetTitleRect(Control);
|
ARect := GetTitleRect(Control);
|
||||||
ARect := TDockHeader.GetRectOfPart(ARect, GetTitleOrientation(Control), Part);
|
ARect := TDockHeader.GetRectOfPart(ARect, GetTitleOrientation(Control), Part);
|
||||||
FillChar(NewMouseState,SizeOf(NewMouseState),0);
|
|
||||||
NewMouseState.Rect := ARect;
|
NewMouseState.Rect := ARect;
|
||||||
NewMouseState.IsMouseDown := (GetKeyState(VK_LBUTTON) and $80) <> 0;
|
NewMouseState.IsMouseDown := (GetKeyState(VK_LBUTTON) and $80) <> 0;
|
||||||
|
end;
|
||||||
if not CompareMem(@FMouseState, @NewMouseState, SizeOf(NewMouseState)) then
|
if not CompareMem(@FMouseState, @NewMouseState, SizeOf(NewMouseState)) then
|
||||||
begin
|
begin
|
||||||
if not CompareRect(@FMouseState.Rect, @NewMouseState.Rect) then
|
if not CompareRect(@FMouseState.Rect, @NewMouseState.Rect) then
|
||||||
@ -2849,7 +2850,6 @@ begin
|
|||||||
InvalidateRect(Handle, @NewMouseState.Rect, False);
|
InvalidateRect(Handle, @NewMouseState.Rect, False);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
|
|
||||||
constructor TLazDockForm.Create(AOwner: TComponent);
|
constructor TLazDockForm.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user