private void messagesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessagesForm messagesForm = new MessagesForm();

            messagesForm.MdiParent = this;
            messagesForm.Show();
        }
Пример #2
0
        private void InitDockingWindows()
        {
            dockingManager = new DockingManager(this, VisualStyle.IDE);

            //Add the tab control first.
            tabControl = new Crownwood.Magic.Controls.TabControl();
            Panel welcomePanel  = new Panel();
            Panel welcomePanel2 = new Panel();

            welcomePanel.Dock = DockStyle.Fill;

            Crownwood.Magic.Controls.TabPage welcomePage = new Crownwood.Magic.Controls.TabPage("Welcome", welcomePanel);
            tabControl.TabPages.Add(welcomePage);
            tabControl.Appearance    = Crownwood.Magic.Controls.TabControl.VisualAppearance.MultiDocument;
            tabControl.Dock          = DockStyle.Fill;
            tabControl.ClosePressed += new EventHandler(DoTabControlClosePressed);
            Controls.Add(tabControl);

            //Add Message form
            messageForm = new MessagesForm();
            Content       messageContent       = dockingManager.Contents.Add(messageForm, "System Messages");
            WindowContent messageWindowContent = dockingManager.AddContentWithState(messageContent, State.DockBottom) as WindowContent;

            //Add Menus
            topMenu = CreateMenus();
            Controls.Add(topMenu);

            //Add status bar
            statusBar            = new StatusBar();
            statusBar.Dock       = DockStyle.Bottom;
            statusBar.ShowPanels = true;

            StatusBarPanel statusBarPanel = new StatusBarPanel();

            statusBarPanel.AutoSize = StatusBarPanelAutoSize.Spring;
            statusBar.Panels.Add(statusBarPanel);
            Controls.Add(statusBar);

            dockingManager.InnerControl = tabControl;
            dockingManager.OuterControl = statusBar;
        }
        private void InitDockingWindows()
        {
            dockingManager = new DockingManager(this, VisualStyle.IDE);

            dockingManager.InnerControl = firstControl;

            //Add message windows
            MessagesForm  messageForm          = new MessagesForm();
            Content       messageContent       = dockingManager.Contents.Add(messageForm, "System Messages");
            WindowContent messageWindowContent = dockingManager.AddContentWithState(messageContent, State.DockBottom) as WindowContent;


            //Set main windows

            Panel welcomePanel = new Panel();

            tabControl = new Crownwood.Magic.Controls.TabControl();
            tabControl.TabPages.Add(new Crownwood.Magic.Controls.TabPage("First", welcomePanel));
            tabControl.TabPages.Add(new Crownwood.Magic.Controls.TabPage("Third", new MessagesForm()));
            tabControl.Appearance     = Crownwood.Magic.Controls.TabControl.VisualAppearance.MultiDocument;
            tabControl.Dock           = DockStyle.Fill;
            tabControl.IDEPixelBorder = true;

            //tabControl. SuspendLayout();
            Controls.Add(tabControl);

            //Set the region for docking.
            //RichTextBox filler = new RichTextBox();
            //filler. Dock = DockStyle. Fill;

            StatusBar status = new StatusBar();

            status.Dock = DockStyle.Bottom;

            dockingManager.OuterControl = status;
        }