Ignore:
Timestamp:
Mar 18, 2011, 1:24:37 PM (14 years ago)
Author:
george
Message:
  • Fixed: Controls docked in Popup Tabs Manager was not removed due wrong RemoveControl method inheritance.
  • Fixed: Tabs in Tabs manager was not update properly.
  • Added: HeaderPos stored in Layout.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDLayout.pas

    r191 r208  
    2727    UndockSize: TPoint;
    2828    DockStyle: TCDStyleType;
     29    HeaderPos: THeaderPos;
    2930    Processed: boolean;
    3031    procedure SaveToNode(Node: TDOMNode);
     
    286287    NewNode.TextContent := IntToStr(RestoredRect.Left);
    287288    AppendChild(NewNode);
     289    NewNode := OwnerDocument.CreateElement('HeaderPos');
     290    NewNode.TextContent := IntToStr(Integer(HeaderPos));
     291    AppendChild(NewNode);
    288292  end;
    289293end;
     
    349353    if Assigned(NewNode) then
    350354      RestoredRect.Height := StrToInt(NewNode.TextContent);
     355    NewNode := FindNode('HeaderPos');
     356    if Assigned(NewNode) then
     357      HeaderPos := THeaderPos(StrToInt(NewNode.TextContent));
    351358  end;
    352359end;
     
    366373  Rect.Width := Form.Width;
    367374  Rect.Height := Form.Height;
     375  if Assigned(Form.DockManager) then
     376    HeaderPos := TCDManager(Form.DockManager).HeaderPos;
    368377  if Form is TForm then
    369378  begin
     
    422431  Form.UndockHeight := UndockSize.Y;
    423432  Form.Visible := Visible;
     433  if Assigned(Form.DockManager) then
     434    TCDManager(Form.DockManager).HeaderPos := HeaderPos;
    424435  if HostDockSiteName <> '' then
    425436  begin
Note: See TracChangeset for help on using the changeset viewer.