Ignore:
Timestamp:
Apr 25, 2011, 7:46:28 PM (14 years ago)
Author:
george
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/Forms/UMainForm.pas

    r27 r30  
    66
    77uses
    8   SysUtils, Variants, Classes, Graphics, Controls, Forms,
    9   Dialogs, StdCtrls, UCompiler, Registry,
    10   ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas,
    11   UProject, FileUtil, Menus, ActnList, UCoolDocking,
    12   UCompiledForm, UCodeTreeForm, URegistry, ULastOpenedList, UApplicationInfo,
    13   UDebugLog, UAnalyzer, UProducer;
     8  SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,
     9  UCompiler, Registry, ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas,
     10  UCDManager, UProject, FileUtil, Menus, ActnList, UCDClient, UCDMaster,
     11  UCDConjoinForm, UCDWindowList, UCDLayout, UCDCustomize, UCompiledForm,
     12  UCodeTreeForm, URegistry, ULastOpenedList, UApplicationInfo, UDebugLog,
     13  UAnalyzer, UProducer;
    1414
    1515const
     
    2929    ActionList1: TActionList;
    3030    Button1: TButton;
     31    CDCustomize1: TCDCustomize;
     32    CDLayoutList1: TCDLayoutList;
     33    CDWindowList1: TCDWindowList;
    3134    CheckBoxLogParsing: TCheckBox;
    3235    ComboBoxAnalyzer: TComboBox;
    3336    ComboBoxProducer: TComboBox;
    34     CoolDockClient1: TCoolDockClient;
    35     CoolDockMaster1: TCoolDockMaster;
     37    CoolDockClient1: TCDClient;
     38    CoolDockMaster1: TCDMaster;
     39    ImageList1: TImageList;
    3640    Label1: TLabel;
    3741    Label2: TLabel;
     
    8185  MainForm: TMainForm;
    8286
     87
    8388implementation
    8489
     
    136141procedure TMainForm.DockInit;
    137142var
    138   Container1: TCoolDockConjoinForm;
    139   Container2: TCoolDockConjoinForm;
     143  Container1: TCDConjoinForm;
     144  Container2: TCDConjoinForm;
    140145begin
    141146  ProjectManager.ManualDock(DockPanel, nil, alLeft);
    142147  ProjectManager.Show;
    143148
    144   Container1 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight);
     149  Container1 := TCDManager(DockPanel.DockManager).CreateConjoinForm;
    145150  Container1.Caption := 'Tools';
    146151  Container1.Name := 'Tools';
    147152  Container1.ManualDock(DockPanel, nil, alRight);
    148 
    149   CodeTreeForm.ManualDock(DockPanel, nil, alLeft);
     153  Container1.Show;
     154  Container1.Parent.Parent.Width := MainForm.Width;
     155
     156  CodeTreeForm.ManualDock(DockPanel, nil, alRight);
    150157  CodeTreeForm.Show;
    151   Container1.Parent.Parent.Width := MainForm.Width;
    152 
    153   Container2 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight);
     158
     159  Container2 := TCDManager(DockPanel.DockManager).CreateConjoinForm;
    154160  Container2.Caption := 'Panel';
    155161  Container2.Name := 'Tools2';
    156   Container2.ManualDock(Container1.Panel, nil, alRight);
    157 
    158   MessagesForm.ManualDock(Container1.Panel, nil, alBottom);
     162  Container2.ManualDock(Container1, nil, alRight);
     163  Container2.Show;
     164
     165  MessagesForm.ManualDock(Container1, nil, alBottom);
    159166  MessagesForm.Show;
    160167
    161   CodeForm.ManualDock(Container2.Panel, nil, alTop);
     168  CodeForm.ManualDock(Container2, nil, alTop);
    162169  CodeForm.Show;
    163170
    164   CompiledForm.ManualDock(Container2.Panel, nil, alTop);
    165   CompiledForm.Show;
     171
     172  //CompiledForm.ManualDock(Container2.Panel, nil, alTop);
     173  //CompiledForm.Show;
    166174
    167175  //TCoolDockManager(Container2.Panel.DockManager).DockStyle := dsTabs;
    168176
    169   ProjectManager.Parent.Parent.Width := 200;
     177  Container1.Parent.Parent.Width := MainForm.Width - ProjectManager.Width - 200;
    170178  Container2.Parent.Parent.Height := MainForm.Height;
    171179end;
Note: See TracChangeset for help on using the changeset viewer.