mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-12 00:38:13 +02:00
lcl: DockManager: handle CM_VISIBLECHANGED
git-svn-id: trunk@20065 -
This commit is contained in:
parent
1b9f91ccc2
commit
f22d9341c2
@ -4801,8 +4801,10 @@ begin
|
||||
if FDockSite and FUseDockManager and Assigned(DockManager) then
|
||||
DockManager.MessageHandler(Self, Message);
|
||||
end;
|
||||
CM_TEXTCHANGED:
|
||||
CM_TEXTCHANGED,
|
||||
CM_VISIBLECHANGED:
|
||||
begin
|
||||
// forward message to the dock manager is we are docked
|
||||
if (HostDockSite <> nil) and (HostDockSite.UseDockManager) and
|
||||
Assigned(HostDockSite.DockManager) then
|
||||
HostDockSite.DockManager.MessageHandler(Self, Message);
|
||||
|
@ -1620,6 +1620,7 @@ var
|
||||
ARect: TRect;
|
||||
Part: TLazDockHeaderPart;
|
||||
Control: TControl;
|
||||
AZone: TLazDockZone;
|
||||
begin
|
||||
case Message.msg of
|
||||
LM_LBUTTONUP:
|
||||
@ -1649,6 +1650,15 @@ begin
|
||||
InvalidateRect(DockSite.Handle, @ARect, False);
|
||||
end;
|
||||
end;
|
||||
CM_VISIBLECHANGED:
|
||||
begin
|
||||
if not (csDestroying in Sender.ComponentState) then
|
||||
begin
|
||||
AZone := RootZone.FindZone(Sender) as TLazDockZone;
|
||||
if AZone <> nil then
|
||||
BuildDockLayout(TLazDockZone(AZone.Parent));
|
||||
end;
|
||||
end;
|
||||
end
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user