コード例 #1
0
        public DockPanel()
        {
            m_focusManager = new FocusManagerImpl(this);
            m_extender     = new DockPanelExtender(this);
            m_panes        = new DockPaneCollection();
            m_floatWindows = new FloatWindowCollection();

            SetStyle(ControlStyles.ResizeRedraw |
                     ControlStyles.UserPaint |
                     ControlStyles.AllPaintingInWmPaint, true);

            SuspendLayout();
            Font = SystemInformation.MenuFont;

            m_autoHideWindow         = new AutoHideWindowControl(this);
            m_autoHideWindow.Visible = false;

            m_dummyControl        = new DummyControl();
            m_dummyControl.Bounds = new Rectangle(0, 0, 1, 1);
            Controls.Add(m_dummyControl);

            m_dockWindows = new DockWindowCollection(this);
            Controls.AddRange(new Control[] {
                DockWindows[DockState.Document],
                DockWindows[DockState.DockLeft],
                DockWindows[DockState.DockRight],
                DockWindows[DockState.DockTop],
                DockWindows[DockState.DockBottom]
            });

            m_dummyContent = new DockContent();
            ResumeLayout();
        }
コード例 #2
0
ファイル: DockPanel.cs プロジェクト: lewispoiuy/TravianTool
        public DockPanel()
        {
            m_focusManager = new FocusManagerImpl(this);
            m_extender     = new DockPanelExtender(this);
            m_panes        = new DockPaneCollection();
            m_floatWindows = new FloatWindowCollection();

            SuspendLayout();

            m_autoHideWindow         = new AutoHideWindowControl(this);
            m_autoHideWindow.Visible = false;
            SetAutoHideWindowParent();

            m_dummyControl        = new DummyControl();
            m_dummyControl.Bounds = new Rectangle(0, 0, 1, 1);
            Controls.Add(m_dummyControl);

            m_dockWindows = new DockWindowCollection(this);
            Controls.AddRange(new Control[] {
                DockWindows[DockState.Document],
                DockWindows[DockState.DockLeft],
                DockWindows[DockState.DockRight],
                DockWindows[DockState.DockTop],
                DockWindows[DockState.DockBottom]
            });

            m_dummyContent = new DockContent();
            ResumeLayout();
        }
コード例 #3
0
 internal void LoadDockWindows()
 {
     m_dockWindows = new DockWindowCollection(this);
     foreach (var dockWindow in DockWindows)
     {
         Controls.Add(dockWindow);
     }
 }
コード例 #4
0
ファイル: DockPanel.cs プロジェクト: xiaoyinl/flashdevelop
        public DockPanel()
        {
            ShowAutoHideContentOnHover = true;

            String value = PluginCore.PluginBase.MainForm.GetThemeValue("DockPanel.ShowAutoHideContentOn");

            if (value == "Click")
            {
                ShowAutoHideContentOnHover = false;
            }

            m_focusManager = new FocusManagerImpl(this);
            m_extender     = new DockPanelExtender(this);
            m_panes        = new DockPaneCollection();
            m_floatWindows = new FloatWindowCollection();

            SetStyle(ControlStyles.ResizeRedraw |
                     ControlStyles.UserPaint |
                     ControlStyles.AllPaintingInWmPaint, true);

            SuspendLayout();
            Font = PluginCore.PluginBase.Settings.DefaultFont;

            m_autoHideWindow         = new AutoHideWindowControl(this);
            m_autoHideWindow.Visible = false;
            SetAutoHideWindowParent();

            m_dummyControl        = new DummyControl();
            m_dummyControl.Bounds = new Rectangle(0, 0, 1, 1);
            Controls.Add(m_dummyControl);

            m_dockWindows = new DockWindowCollection(this);
            Controls.AddRange(new Control[] {
                DockWindows[DockState.Document],
                DockWindows[DockState.DockLeft],
                DockWindows[DockState.DockRight],
                DockWindows[DockState.DockTop],
                DockWindows[DockState.DockBottom]
            });

            m_dummyContent = new DockContent();
            ResumeLayout();
        }