コード例 #1
0
 private void SetupExpandVerticalPane()
 {
     m_VerticalExpandPane = new PanelEx();
     m_VerticalExpandPane.ColorSchemeStyle = this.ColorSchemeStyle;
     m_VerticalExpandPane.ColorScheme = this.ColorScheme;
     m_VerticalExpandPane.ApplyButtonStyle();
     m_VerticalExpandPane.Style.VerticalText = true;
     m_VerticalExpandPane.Style.ForeColor.ColorSchemePart = eColorSchemePart.PanelText;
     m_VerticalExpandPane.Style.BackColor1.ColorSchemePart = eColorSchemePart.PanelBackground;
     m_VerticalExpandPane.Style.ResetBackColor2();
     m_VerticalExpandPane.StyleMouseOver.VerticalText = true;
     m_VerticalExpandPane.StyleMouseDown.VerticalText = true;
     m_VerticalExpandPane.Dock = DockStyle.Fill;
     m_VerticalExpandPane.Text = TitlePanel.Text;
     
     this.Controls.Add(m_VerticalExpandPane);
     if(this.TitleStyle.Font!=null)
         m_VerticalExpandPane.Font = this.TitleStyle.Font;
     else if (TitlePanel.Font != null)
         m_VerticalExpandPane.Font = TitlePanel.Font;
     m_VerticalExpandPane.Click += new EventHandler(VerticalExpandPaneClick);
     m_VerticalExpandPane.BringToFront();
 }
コード例 #2
0
        private void SetupPanePopup()
        {
            m_PanePopupPanel = new PanelEx();
            m_PanePopupPanel.ColorSchemeStyle = navBar.Style;
            m_PanePopupPanel.ColorScheme = navBar.GetColorScheme();
            m_PanePopupPanel.ApplyButtonStyle();
            m_PanePopupPanel.Style.VerticalText = true;
            m_PanePopupPanel.Style.ForeColor.ColorSchemePart = eColorSchemePart.PanelText;
            m_PanePopupPanel.Style.BackColor1.ColorSchemePart = eColorSchemePart.PanelBackground;
            m_PanePopupPanel.Style.ResetBackColor2();
            m_PanePopupPanel.StyleMouseOver.VerticalText = true;
            m_PanePopupPanel.StyleMouseDown.VerticalText = true;
            m_PanePopupPanel.Font = panelTitle.Font;
            m_PanePopupPanel.AntiAlias = this.AntiAlias;
            UpdatePanePopupPanelSize();

            if(this.CheckedButton!=null)
                m_PanePopupPanel.Text = this.CheckedButton.Text;
            else
                m_PanePopupPanel.Text = "Navigation Pane";
            
            foreach (Control c in this.Controls)
            {
                if (c is NavigationPanePanel)
                    c.Visible = false;
            }
            this.Controls.Add(m_PanePopupPanel);
            m_PanePopupPanel.Click += new EventHandler(PanePopupPanelClick);
        }