Ignore:
Timestamp:
Aug 1, 2012, 11:10:12 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Base pagecontrol layout.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StudioPackage/Forms/UFormMain.pas

    r3 r4  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
    9   ActnList, ComCtrls;
     9  ActnList, ComCtrls, ExtCtrls;
    1010
    1111type
     
    4747    MenuItem8: TMenuItem;
    4848    MenuItem9: TMenuItem;
     49    PageControl1: TPageControl;
     50    PageControl2: TPageControl;
     51    PageControl3: TPageControl;
     52    PageControl4: TPageControl;
     53    Splitter1: TSplitter;
     54    Splitter2: TSplitter;
    4955    StatusBar1: TStatusBar;
     56    TabSheetProject: TTabSheet;
     57    TabSheet2: TTabSheet;
     58    TabSheet3: TTabSheet;
     59    TabSheetSource: TTabSheet;
    5060    ToolBar1: TToolBar;
    5161    ToolButton1: TToolButton;
     
    5565    procedure AExitExecute(Sender: TObject);
    5666    procedure AViewProjectManagerExecute(Sender: TObject);
     67    procedure FormShow(Sender: TObject);
    5768  private
    58     { private declarations }
     69    procedure DockInit;
    5970  public
    6071    { public declarations }
     
    6980
    7081uses
    71   UFormProject;
     82  UFormProject, UFormSourceCode;
    7283
    7384{ TFormMain }
     
    8394end;
    8495
     96procedure TFormMain.FormShow(Sender: TObject);
     97begin
     98  DockInit;
     99end;
     100
     101procedure TFormMain.DockInit;
     102begin
     103  FormSourceCode.ManualDock(TabSheetSource, nil, alClient);
     104  FormSourceCode.Align := alClient;
     105  FormSourceCode.Show;
     106  FormProject.ManualDock(TabSheetProject, nil, alClient);
     107  FormProject.Align := alClient;
     108  FormProject.Show;
     109end;
     110
    85111end.
    86112
Note: See TracChangeset for help on using the changeset viewer.