Ignore:
Timestamp:
May 4, 2012, 12:27:25 PM (13 years ago)
Author:
chronos
Message:
  • Fixed: Regions size update on Control visible state change.
  • Added: Support for custom center region selection. Surrounding regions are aligned to edges and keep size on docksite resize.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/Demo/Testing/UMainForm.pas

    r355 r359  
    99  ComCtrls, ExtCtrls, Buttons, Menus, UCDMaster, UCDCustomize, UCDClient,
    1010  UDockForm, UComponentTree, UCDWindowList, UCDConjoinForm, UCDManager,
    11   UCDCommon;
     11  UCDCommon, UCDManagerRegions;
    1212
    1313type
     
    6969  ConjoinedDockForm2: TCDConjoinForm;
    7070  Form1: TDockForm;
     71  Form2: TDockForm;
     72  Form3: TDockForm;
    7173begin
    72   NewDockForm.ManualDock(Panel1);
    7374  Form1 := NewDockForm;
    74   Form1.ManualDock(Panel1);
    75   NewDockForm.ManualDock(Form1);
    76   TCDManager(Panel1.DockManager).DockStyle := dsTabs;
    77   NewDockForm.ManualDock(Panel1);
     75  Form1.ManualDock(Panel1, nil, alRight);
     76  Form2 := NewDockForm;
     77  Form2.ManualDock(Panel1, nil, alRight);
     78  Form3 := NewDockForm;
     79  Form3.ManualDock(Panel1, nil, alRight);
     80  TCDManagerRegionsItem(TCDPanelHeader(Form2.Parent.Parent).DockItem).SetCenter;
     81
     82  //Form1 := NewDockForm;
     83  //Form1.ManualDock(Panel1);
     84  //NewDockForm.ManualDock(Form1);
     85  //TCDManager(Panel1.DockManager).DockStyle := dsTabs;
     86  //NewDockForm.ManualDock(Panel1);
    7887(*  ConjoinedDockForm1 := TCDManager(Panel1.DockManager).CreateConjoinForm;
    7988  ConjoinedDockForm1.Name := 'Model';;
Note: See TracChangeset for help on using the changeset viewer.