protected override void InitPanels()
        {
            INDockZone    root = m_DockManager.RootContainer.RootZone;
            INDockZone    target;
            NDockingPanel panel;

            panel = GetGenericPanel();
            panel.PerformDock(root, DockStyle.Left);

            target = panel.ParentZone;
            panel  = GetGenericPanel();
            panel.PerformDock(target, DockStyle.Bottom);

            target = m_DockManager.DocumentManager.DocumentViewHost;
            panel  = GetGenericPanel();
            panel.PerformDock(target, DockStyle.Bottom);

            panel = new NDockingPanel();
            panel.Controls.Add(m_PropertyGrid);
            m_PropertyGrid.SelectedObject = m_DockManager;
            panel.PerformDock(root, DockStyle.Right);

            //add some documents to the doc view

            for (int i = 0; i < 5; i++)
            {
                NUIDocument doc = new NUIDocument();
                doc.Client = GetTextBox();
                m_DockManager.DocumentManager.AddDocument(doc);
            }
        }
Exemplo n.º 2
0
        protected override void InitPanels()
        {
            m_DockManager.DocumentStyle.ImageList = MainForm.StandardImages;
            m_DockManager.DocumentManager.ActiveDocumentChanged += new DocumentEventHandler(DocumentManager_ActiveDocumentChanged);

            NUIDocument doc;
            TextBox     tb;

            Label lb = new Label();

            lb.Dock      = DockStyle.Fill;
            lb.BackColor = Color.SaddleBrown;

            tb             = GetTextBox();
            tb.BorderStyle = BorderStyle.None;
            tb.Text        = "Text";
            tb.ScrollBars  = ScrollBars.Both;
            tb.WordWrap    = false;
            doc            = new NUIDocument("Document 1", -1, tb);
            m_DockManager.DocumentManager.AddDocument(doc);

            tb             = GetTextBox();
            tb.BorderStyle = BorderStyle.None;
            tb.Text        = "Document 2";
            doc            = new NUIDocument("Document 2", 0, tb);
            m_DockManager.DocumentManager.AddDocument(doc);

            tb             = GetTextBox();
            tb.BorderStyle = BorderStyle.None;
            tb.Text        = "Document 3";
            doc            = new NUIDocument("Document 3", 0, tb);
            m_DockManager.DocumentManager.AddDocument(doc);

            NDockingPanel panel;

            panel = new NDockingPanel();
            panel.Caption.ImageIndex = 0;
            panel.Caption.ImageList  = MainForm.ActionImages;
            panel.Caption.ImageSize  = new Size(20, 20);
            panel.Controls.Add(GetTextBox());
            panel.PerformDock(m_DockManager.DocumentManager.DocumentViewHost, DockStyle.Bottom);

            panel               = new NDockingPanel();
            panel.Text          = "Document Style";
            panel.TabInfo.Text  = "Document Style";
            m_PropertyGrid.Dock = DockStyle.Fill;
            panel.Controls.Add(m_PropertyGrid);
            panel.PerformDock(m_DockManager.RootContainer.RootZone, DockStyle.Right);
        }
Exemplo n.º 3
0
        protected override void InitPanels()
        {
            NDockingPanel panel, panel1;

            panel1 = new NDockingPanel();
            panel1.PerformDock(m_DockManager.RootContainer.RootZone, DockStyle.Left);

            /*NCaptionButton btn = new NCaptionButton();
             * btn.Text = ">";
             * panel1.Caption.Buttons.Add(btn);
             * panel1.CaptionButtonClicked += new CaptionEventHandler(panel1_CaptionButtonClicked);*/

            panel = new NDockingPanel();
            panel.PerformDock(panel1.ParentZone, DockStyle.Bottom);
        }
Exemplo n.º 4
0
        internal void LoadPanels()
        {
            NDockingPanel panel;

            INDockZone target;
            INDockZone root    = m_DockManager.RootContainer.RootZone;
            INDockZone docHost = m_DockManager.DocumentManager.DocumentViewHost;

            panel      = new NDockingPanel();
            panel.Text = "Solution Explorer";
            panel.Controls.Add(m_SolutionExplorer);
            panel.TabInfo.ImageIndex = 19;
            panel.PerformDock(root, DockStyle.Left);

            //output window
            panel      = new NDockingPanel();
            panel.Text = "Output";
            //panel.Controls.Add(GetOutputWindow());
            panel.TabInfo.ImageIndex = 28;
            panel.PerformDock(docHost, DockStyle.Bottom);
            target = panel.ParentZone;

            //task list
            panel      = new NDockingPanel();
            panel.Text = "Task List";
            panel.Controls.Add(GetTaskList());
            panel.TabInfo.ImageIndex = 26;
            panel.PerformDock(target, DockStyle.Fill);

            //toolbox
            panel      = new NDockingPanel();
            panel.Text = "Toolbox";
            panel.Controls.Add(GetToolbox());
            panel.TabInfo.ImageIndex = 22;
            panel.PerformDock(root, DockStyle.Right);
            target = panel.ParentZone;

            panel      = new NDockingPanel();
            panel.Text = "Properties";
            panel.Controls.Add(GetProperties());
            panel.TabInfo.ImageIndex = 20;
            panel.PerformDock(target, DockStyle.Fill);
        }