private void SetButtons()
        {
            ButtonClose.Enabled    = CloseButtonEnabled;
            ButtonAutoHide.Visible = ShouldShowAutoHideButton;
            ButtonOptions.Visible  = HasTabPageContextMenu;
            ButtonClose.RefreshChanges();
            ButtonAutoHide.RefreshChanges();
            ButtonOptions.RefreshChanges();

            SetButtonsPosition();
        }
예제 #2
0
        private void SetButtons()
        {
            ButtonClose.Enabled    = CloseButtonEnabled;
            ButtonClose.Visible    = CloseButtonVisible;
            ButtonAutoHide.Visible = ShouldShowAutoHideButton;
            ButtonOptions.Visible  = HasTabPageContextMenu;
            if (!Win32Helper.IsRunningOnMono)
            {
                ButtonClose.RefreshChanges();
                ButtonAutoHide.RefreshChanges();
                ButtonOptions.RefreshChanges();
            }

            SetButtonsPosition();
        }
        private void SetInertButtons()
        {
            if (Appearance == DockPane.AppearanceStyle.ToolWindow)
            {
                if (m_buttonClose != null)
                {
                    m_buttonClose.Left = -m_buttonClose.Width;
                }

                if (m_buttonWindowList != null)
                {
                    m_buttonWindowList.Left = -m_buttonWindowList.Width;
                }
            }
            else
            {
                bool showCloseButton = DockPane.ActiveContent == null ? true : DockPane.ActiveContent.DockHandler.CloseButton;
                ButtonClose.Enabled = showCloseButton;
                ButtonClose.RefreshChanges();
                ButtonWindowList.RefreshChanges();
            }
        }