Ignore:
Timestamp:
Mar 9, 2011, 2:11:40 PM (14 years ago)
Author:
george
Message:
  • Added: Default layout initialization in Demo IDE.
  • Fixed: Tab position switching through popup menu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCoolDockLayout.pas

    r181 r182  
    351351        NewItem := TCoolDockLayoutItem.Create;
    352352        NewItem.Parent := Parent;
     353        NewItem.DockStyle := TCoolDockManager(Form.HostDockSite.Parent.DockManager).DockStyle;
     354        Parent.Items.Add(NewItem);
    353355        NewItem.Store(Form.HostDockSite.Parent);
    354         Parent.Items.Add(NewItem);
    355356      end;
    356357    end;
     
    391392            if FormClass = TCoolDockConjoinForm then begin
    392393              ParentComponent := TCoolDockConjoinForm.Create(Application);
     394              TCoolDockManager(TCoolDockConjoinForm(ParentComponent).Panel.DockManager).DockStyle := ParentLayoutItem.DockStyle;
    393395              ParentLayoutItem.Restore(TWinControl(ParentComponent));
    394396            end;
Note: See TracChangeset for help on using the changeset viewer.