Exemple #1
0
        /// <summary>
        /// 设置多标签管理器
        /// </summary>
        private void ConfigureTabbedMdiManager()
        {
            // Create a new instance of the TabbedMdiManager class, which will handle all ToolWindows
            // that have an Mdi state.
            _mdiManager = new TabbedMdiManager(this);

            _mdiManager.Style              = RenderStyle.VS2005;
            _mdiManager.AllowClose         = true;  //不允许关闭
            _mdiManager.AllowModifications = false; //不允许修改
            // Subscribe to the GroupAdded event to reset the appropriate value
            // in the Orientation menu.
            //_mdiManager.GroupAdded += new GroupAddedEventHandler(m_mdiManager_GroupAdded);
        }
        private void CreateComponent()
        {
            //s_tabbedMdiForm = this;

            m_mdiManager = new TabbedMdiManager(this);
            m_mdiManager.Style = RenderStyle.VS2005; //VS2005 has error
            m_mdiManager.AllowModifications = true;
            m_mdiManager.ShowMenuOnCtrlTab = true;
            m_mdiManager.AllowClose = true;
            m_mdiManager.FormSelected += new FormSelectedEventHandler(ChildForm_FormSelected);

            m_mdiManager.TabGroupOrientation = Orientation.Horizontal;

            m_topGroup = new TabbedMdiTabGroup();
            m_mdiManager.TabGroups.Add(m_topGroup);
            m_bottomGroup = new TabbedMdiTabGroup();
            //m_mdiManager.TabGroups.Add(m_bottomGroup);

            m_dockManager = new DockLayoutManager(this, null);
            m_dockManager.Style = RenderStyle.VS2005;
            m_dockManager.AllowAutoHide = true;
            m_dockManager.AllowDocking = true;
            m_dockManager.AllowFloating = true;
            m_dockManager.AllowHide = true;
            m_dockManager.AutoHideFrameAppearance.ShowHideDelay = 50;

            this.smartOutlookShortcutBar1 = new Xceed.SmartUI.Controls.OutlookShortcutBar.SmartOutlookShortcutBar(this.components);
            //this.smartOutlookShortcutBar1.UIStyle = Xceed.SmartUI.UIStyle.UIStyle.WindowsClassic;
            XceedUtility.SetUIStyle(this.smartOutlookShortcutBar1);

            CreateToolWindow();
        }