/// <summary> /// Applies orange color scheme to background and title. /// </summary> /// <param name="b">Reference to object</param> public static void ApplyOrangeColorScheme(RibbonBar b) { b.BackgroundStyle.Reset(); b.BackgroundMouseOverStyle.Reset(); b.TitleStyle.Reset(); b.TitleStyleMouseOver.Reset(); TypeDescriptor.GetProperties(b.BackgroundStyle)["BackColor"].SetValue(b.BackgroundStyle, ColorScheme.GetColor("CFD5E2")); TypeDescriptor.GetProperties(b.BackgroundStyle)["BackColor2"].SetValue(b.BackgroundStyle, ColorScheme.GetColor("C2C9D9")); TypeDescriptor.GetProperties(b.BackgroundStyle)["BackColorGradientAngle"].SetValue(b.BackgroundStyle, 90); TypeDescriptor.GetProperties(b.TitleStyle)["BackColor"].SetValue(b.TitleStyle, ColorScheme.GetColor("CBA950")); TypeDescriptor.GetProperties(b.TitleStyle)["BackColor2"].SetValue(b.TitleStyle, ColorScheme.GetColor("FED665")); TypeDescriptor.GetProperties(b.TitleStyle)["BackColorGradientAngle"].SetValue(b.TitleStyle, 90); TypeDescriptor.GetProperties(b.TitleStyle)["TextColor"].SetValue(b.TitleStyle, Color.White); TypeDescriptor.GetProperties(b.TitleStyle)["PaddingTop"].SetValue(b.TitleStyle, 3); TypeDescriptor.GetProperties(b.TitleStyle)["PaddingBottom"].SetValue(b.TitleStyle, 2); TypeDescriptor.GetProperties(b.TitleStyle)["PaddingLeft"].SetValue(b.TitleStyle, 2); TypeDescriptor.GetProperties(b.TitleStyle)["PaddingRight"].SetValue(b.TitleStyle, 2); TypeDescriptor.GetProperties(b.TitleStyle)["TextShadowColor"].SetValue(b.TitleStyle, Color.Black); TypeDescriptor.GetProperties(b.TitleStyle)["TextShadowOffset"].SetValue(b.TitleStyle, new Point(1, 1)); TypeDescriptor.GetProperties(b.TitleStyle)["Border"].SetValue(b.TitleStyle, eStyleBorderType.None); b.Invalidate(); }
private RibbonBar CreateChildMenus(MenuInfo subMenuInfo) { ButtonItem buttonItem = new DevComponents.DotNetBar.ButtonItem(); buttonItem.Name = subMenuInfo.MenuID; buttonItem.Text = subMenuInfo.MenuName; buttonItem.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; //buttonItem.Image = ((System.Drawing.Image)(resourceManager.GetObject("buttonItem1.Image"))); //buttonItem.Image = ((System.Drawing.Image)(resourceManager.GetObject("OpenExistingPlace"))); buttonItem.Image = imageList.Images["OpenExistingPlace"]; buttonItem.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; buttonItem.RibbonWordWrap = false; buttonItem.Visible = true; DevComponents.DotNetBar.RibbonBar ribbonBar = new DevComponents.DotNetBar.RibbonBar(); ribbonBar.AutoOverflowEnabled = true; ribbonBar.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonBar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonBar.ContainerControlProcessDialogKey = true; ribbonBar.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { buttonItem}); ribbonBar.Location = new System.Drawing.Point(3, 0); ribbonBar.Name = System.Guid.NewGuid().ToString(); ribbonBar.Size = new System.Drawing.Size(337, 82); ribbonBar.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; ribbonBar.TabIndex = 0; //ribbonBar.Text = subMenuInfo.MenuName; ribbonBar.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonBar.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonBar.Visible = true; return ribbonBar; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); this.mdiClient1 = new System.Windows.Forms.MdiClient(); this.bar1 = new DevComponents.DotNetBar.Bar(); this.itemContainer9 = new DevComponents.DotNetBar.ItemContainer(); this.btnText = new DevComponents.DotNetBar.ButtonItem(); this.btnNavigation = new DevComponents.DotNetBar.ButtonItem(); this.labelStatus = new DevComponents.DotNetBar.LabelItem(); this.progressBarItem1 = new DevComponents.DotNetBar.ProgressBarItem(); this.itemContainer13 = new DevComponents.DotNetBar.ItemContainer(); this.labelPosition = new DevComponents.DotNetBar.LabelItem(); this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl(); this.ribPnlContext = new DevComponents.DotNetBar.RibbonPanel(); this.ribGrpMainLoop = new DevComponents.DotNetBar.RibbonBar(); this.btnParamIn4MainLoop = new DevComponents.DotNetBar.ButtonItem(); this.btnCalc4MainLoop = new DevComponents.DotNetBar.ButtonItem(); this.btnProcess4MainLoop = new DevComponents.DotNetBar.ButtonItem(); this.ribPnlWrite = new DevComponents.DotNetBar.RibbonPanel(); this.ribTagParagraph = new DevComponents.DotNetBar.RibbonBar(); this.itemContainerParagrapg1 = new DevComponents.DotNetBar.ItemContainer(); this.itemContainerParagrapg2 = new DevComponents.DotNetBar.ItemContainer(); this.buttonAlignLeft = new DevComponents.DotNetBar.ButtonItem(); this.buttonAlignCenter = new DevComponents.DotNetBar.ButtonItem(); this.buttonAlignRight = new DevComponents.DotNetBar.ButtonItem(); this.buttonAlignJustify = new DevComponents.DotNetBar.ButtonItem(); this.itemContainerParagrapg4 = new DevComponents.DotNetBar.ItemContainer(); this.btnSeqNumber = new DevComponents.DotNetBar.ButtonItem(); this.btnGrade = new DevComponents.DotNetBar.ButtonItem(); this.btnToRigth = new DevComponents.DotNetBar.ButtonItem(); this.btnToLeft = new DevComponents.DotNetBar.ButtonItem(); this.itemContainerParagrapg3 = new DevComponents.DotNetBar.ItemContainer(); this.btnBorders = new DevComponents.DotNetBar.ButtonItem(); this.btnShading = new DevComponents.DotNetBar.ButtonItem(); this.ribTagFont = new DevComponents.DotNetBar.RibbonBar(); this.itemContainerFont1 = new DevComponents.DotNetBar.ItemContainer(); this.comboFont = new DevComponents.DotNetBar.ComboBoxItem(); this.comboFontSize = new DevComponents.DotNetBar.ComboBoxItem(); this.comboItem1 = new DevComponents.Editors.ComboItem(); this.comboItem2 = new DevComponents.Editors.ComboItem(); this.comboItem3 = new DevComponents.Editors.ComboItem(); this.comboItem4 = new DevComponents.Editors.ComboItem(); this.comboItem5 = new DevComponents.Editors.ComboItem(); this.itemContainerFont2 = new DevComponents.DotNetBar.ItemContainer(); this.buttonFontBold = new DevComponents.DotNetBar.ButtonItem(); this.buttonFontItalic = new DevComponents.DotNetBar.ButtonItem(); this.buttonFontUnderline = new DevComponents.DotNetBar.ButtonItem(); this.buttonFontStrike = new DevComponents.DotNetBar.ButtonItem(); this.buttonTextColor = new DevComponents.DotNetBar.ColorPickerDropDown(); this.ribTagClipboard = new DevComponents.DotNetBar.RibbonBar(); this.buttonPaste = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem53 = new DevComponents.DotNetBar.ButtonItem(); this.btnPasteSpecial = new DevComponents.DotNetBar.ButtonItem(); this.itemContainerClipboard = new DevComponents.DotNetBar.ItemContainer(); this.buttonCut = new DevComponents.DotNetBar.ButtonItem(); this.btnFormat = new DevComponents.DotNetBar.ButtonItem(); this.ribPnlLayout = new DevComponents.DotNetBar.RibbonPanel(); this.ribBarOptions = new DevComponents.DotNetBar.RibbonBar(); this.itemContainerOptions1 = new DevComponents.DotNetBar.ItemContainer(); this.checkBoxItem1 = new DevComponents.DotNetBar.CheckBoxItem(); this.checkBoxItem3 = new DevComponents.DotNetBar.CheckBoxItem(); this.itemContainer1Options2 = new DevComponents.DotNetBar.ItemContainer(); this.checkBoxItem4 = new DevComponents.DotNetBar.CheckBoxItem(); this.checkBoxItem6 = new DevComponents.DotNetBar.CheckBoxItem(); this.ribBarFind = new DevComponents.DotNetBar.RibbonBar(); this.buttonFind = new DevComponents.DotNetBar.ButtonItem(); this.itemContainerFind = new DevComponents.DotNetBar.ItemContainer(); this.buttonReplace = new DevComponents.DotNetBar.ButtonItem(); this.buttonGoto = new DevComponents.DotNetBar.ButtonItem(); this.ribTagPageSetup = new DevComponents.DotNetBar.RibbonBar(); this.buttonMargins = new DevComponents.DotNetBar.ButtonItem(); this.btnOrientation = new DevComponents.DotNetBar.ButtonItem(); this.btnAuto = new DevComponents.DotNetBar.ButtonItem(); this.btnHorizontal = new DevComponents.DotNetBar.ButtonItem(); this.btnVertical = new DevComponents.DotNetBar.ButtonItem(); this.btnSize = new DevComponents.DotNetBar.ButtonItem(); this.btnPrintArea = new DevComponents.DotNetBar.ButtonItem(); this.ribTabPrjManage = new DevComponents.DotNetBar.RibbonTabItem(); this.ribTabMainDevice = new DevComponents.DotNetBar.RibbonTabItem(); this.ribTagMainLoop = new DevComponents.DotNetBar.RibbonTabItem(); this.buttonChangeStyle = new DevComponents.DotNetBar.ButtonItem(); this.buttonStyleOffice2007Blue = new DevComponents.DotNetBar.ButtonItem(); this.AppCommandTheme = new DevComponents.DotNetBar.Command(this.components); this.buttonStyleOffice2007Silver = new DevComponents.DotNetBar.ButtonItem(); this.buttonFile = new DevComponents.DotNetBar.Office2007StartButton(); this.superTabControl1 = new DevComponents.DotNetBar.SuperTabControl(); this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.panelEx2 = new DevComponents.DotNetBar.PanelEx(); this.recentPlacesItemsPanel = new DevComponents.DotNetBar.ItemPanel(); this.labelX2 = new DevComponents.DotNetBar.LabelX(); this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); this.recentDocsItemPane = new DevComponents.DotNetBar.ItemPanel(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); this.superTabItem1 = new DevComponents.DotNetBar.SuperTabItem(); this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.itemPanel1 = new DevComponents.DotNetBar.ItemPanel(); this.buttonItem67 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem68 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem69 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem70 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem71 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem72 = new DevComponents.DotNetBar.ButtonItem(); this.labelX3 = new DevComponents.DotNetBar.LabelX(); this.superTabItem2 = new DevComponents.DotNetBar.SuperTabItem(); this.superTabControlPanel3 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.panelEx3 = new DevComponents.DotNetBar.PanelEx(); this.labelX5 = new DevComponents.DotNetBar.LabelX(); this.integerInput1 = new DevComponents.Editors.IntegerInput(); this.labelX4 = new DevComponents.DotNetBar.LabelX(); this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); this.superTabItem3 = new DevComponents.DotNetBar.SuperTabItem(); this.superTabControlPanel4 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.itemPanel2 = new DevComponents.DotNetBar.ItemPanel(); this.buttonItem77 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem73 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem74 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem75 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem76 = new DevComponents.DotNetBar.ButtonItem(); this.labelX6 = new DevComponents.DotNetBar.LabelX(); this.superTabItem4 = new DevComponents.DotNetBar.SuperTabItem(); this.buttonItem61 = new DevComponents.DotNetBar.ButtonItem(); this.AppCommandSave = new DevComponents.DotNetBar.Command(this.components); this.buttonItem63 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem64 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem65 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem66 = new DevComponents.DotNetBar.ButtonItem(); this.buttonSave = new DevComponents.DotNetBar.ButtonItem(); this.buttonUndo = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem47 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem48 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem49 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem17 = new DevComponents.DotNetBar.ButtonItem(); this.buttonStyleMetro = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem62 = new DevComponents.DotNetBar.ButtonItem(); this.buttonStyleOffice2007Black = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem60 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem16 = new DevComponents.DotNetBar.ButtonItem(); this.buttonStyleCustom = new DevComponents.DotNetBar.ColorPickerDropDown(); this.RibbonStateCommand = new DevComponents.DotNetBar.Command(this.components); this.menuFileContainer = new DevComponents.DotNetBar.ItemContainer(); this.menuFileTwoColumnContainer = new DevComponents.DotNetBar.ItemContainer(); this.menuFileItems = new DevComponents.DotNetBar.ItemContainer(); this.buttonItem20 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem21 = new DevComponents.DotNetBar.ButtonItem(); this.buttonFileSaveAs = new DevComponents.DotNetBar.ButtonItem(); this.itemContainer12 = new DevComponents.DotNetBar.ItemContainer(); this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); this.buttonItem56 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem57 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem58 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem59 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem23 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem24 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem25 = new DevComponents.DotNetBar.ButtonItem(); this.menuFileMRU = new DevComponents.DotNetBar.ItemContainer(); this.labelItem8 = new DevComponents.DotNetBar.LabelItem(); this.buttonItem26 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem27 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem28 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem29 = new DevComponents.DotNetBar.ButtonItem(); this.menuFileBottomContainer = new DevComponents.DotNetBar.ItemContainer(); this.buttonOptions = new DevComponents.DotNetBar.ButtonItem(); this.buttonExit = new DevComponents.DotNetBar.ButtonItem(); this.progressBarTimer = new System.Windows.Forms.Timer(this.components); this.styleManager = new DevComponents.DotNetBar.StyleManager(this.components); this.grpBoxTree = new System.Windows.Forms.GroupBox(); this.treeView1 = new System.Windows.Forms.TreeView(); this.imageList = new System.Windows.Forms.ImageList(this.components); ((System.ComponentModel.ISupportInitialize)(this.bar1)).BeginInit(); this.ribbonControl1.SuspendLayout(); this.ribPnlContext.SuspendLayout(); this.ribPnlWrite.SuspendLayout(); this.ribPnlLayout.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.superTabControl1)).BeginInit(); this.superTabControl1.SuspendLayout(); this.superTabControlPanel1.SuspendLayout(); this.panelEx2.SuspendLayout(); this.panelEx1.SuspendLayout(); this.superTabControlPanel2.SuspendLayout(); this.superTabControlPanel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.integerInput1)).BeginInit(); this.superTabControlPanel4.SuspendLayout(); this.grpBoxTree.SuspendLayout(); this.SuspendLayout(); // // mdiClient1 // this.mdiClient1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.mdiClient1.Dock = System.Windows.Forms.DockStyle.Fill; this.mdiClient1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.mdiClient1.Location = new System.Drawing.Point(5, 148); this.mdiClient1.Name = "mdiClient1"; this.mdiClient1.Size = new System.Drawing.Size(958, 452); this.mdiClient1.TabIndex = 5; // // bar1 // this.bar1.AccessibleDescription = "DotNetBar Bar (bar1)"; this.bar1.AccessibleName = "DotNetBar Bar"; this.bar1.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; this.bar1.AntiAlias = true; this.bar1.BarType = DevComponents.DotNetBar.eBarType.StatusBar; this.bar1.Dock = System.Windows.Forms.DockStyle.Bottom; this.bar1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bar1.GrabHandleStyle = DevComponents.DotNetBar.eGrabHandleStyle.ResizeHandle; this.bar1.IsMaximized = false; this.bar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.itemContainer9, this.labelStatus, this.progressBarItem1, this.itemContainer13}); this.bar1.ItemSpacing = 2; this.bar1.Location = new System.Drawing.Point(5, 600); this.bar1.Name = "bar1"; this.bar1.PaddingBottom = 0; this.bar1.PaddingTop = 0; this.bar1.Size = new System.Drawing.Size(958, 28); this.bar1.Stretch = true; this.bar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.bar1.TabIndex = 7; this.bar1.TabStop = false; this.bar1.Text = "barStatus"; // // itemContainer9 // // // // this.itemContainer9.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainer9.BeginGroup = true; this.itemContainer9.Name = "itemContainer9"; this.itemContainer9.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnText, this.btnNavigation}); // // // this.itemContainer9.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // btnText // this.btnText.Enabled = false; this.btnText.EnableMarkup = false; this.btnText.FontBold = true; this.btnText.ForeColor = System.Drawing.Color.Black; this.btnText.ImagePaddingVertical = 9; this.btnText.Name = "btnText"; this.btnText.PopupAnimation = DevComponents.DotNetBar.ePopupAnimation.None; this.btnText.RibbonWordWrap = false; this.btnText.ShowSubItems = false; this.btnText.StopPulseOnMouseOver = false; this.btnText.SymbolSize = 10F; this.btnText.Text = "当前位置:"; // // btnNavigation // this.btnNavigation.Enabled = false; this.btnNavigation.FontBold = true; this.btnNavigation.ImagePaddingVertical = 9; this.btnNavigation.Name = "btnNavigation"; this.btnNavigation.PopupAnimation = DevComponents.DotNetBar.ePopupAnimation.None; this.btnNavigation.SymbolSize = 10F; this.btnNavigation.Tooltip = "Comments"; // // labelStatus // this.labelStatus.Name = "labelStatus"; this.labelStatus.PaddingLeft = 2; this.labelStatus.PaddingRight = 2; this.labelStatus.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156))))); this.labelStatus.Stretch = true; // // progressBarItem1 // // // // this.progressBarItem1.BackStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.progressBarItem1.ChunkGradientAngle = 0F; this.progressBarItem1.MenuVisibility = DevComponents.DotNetBar.eMenuVisibility.VisibleAlways; this.progressBarItem1.Name = "progressBarItem1"; this.progressBarItem1.RecentlyUsed = false; // // itemContainer13 // // // // this.itemContainer13.BackgroundStyle.Class = "Office2007StatusBarBackground2"; this.itemContainer13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainer13.Name = "itemContainer13"; this.itemContainer13.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.labelPosition}); // // // this.itemContainer13.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // labelPosition // this.labelPosition.Name = "labelPosition"; this.labelPosition.PaddingLeft = 2; this.labelPosition.PaddingRight = 2; this.labelPosition.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(97)))), ((int)(((byte)(156))))); this.labelPosition.Width = 100; // // ribbonControl1 // this.ribbonControl1.BackColor = System.Drawing.SystemColors.Control; this.ribbonControl1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ribbonControl1.BackgroundImage"))); // // // this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribbonControl1.CaptionVisible = true; this.ribbonControl1.Controls.Add(this.ribPnlContext); this.ribbonControl1.Controls.Add(this.ribPnlWrite); this.ribbonControl1.Controls.Add(this.ribPnlLayout); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ribbonControl1.ForeColor = System.Drawing.Color.Black; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.ribTabPrjManage, this.ribTabMainDevice, this.ribTagMainLoop, this.buttonChangeStyle}); this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ribbonControl1.Location = new System.Drawing.Point(5, 1); this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 3); this.ribbonControl1.QuickToolbarItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonFile, this.buttonSave, this.buttonUndo}); this.ribbonControl1.RibbonStripFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ribbonControl1.Size = new System.Drawing.Size(958, 147); this.ribbonControl1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribbonControl1.SystemText.MaximizeRibbonText = "&Maximize the Ribbon"; this.ribbonControl1.SystemText.MinimizeRibbonText = "Mi&nimize the Ribbon"; this.ribbonControl1.SystemText.QatAddItemText = "&Add to Quick Access Toolbar"; this.ribbonControl1.SystemText.QatCustomizeMenuLabel = "<b>Customize Quick Access Toolbar</b>"; this.ribbonControl1.SystemText.QatCustomizeText = "&Customize Quick Access Toolbar..."; this.ribbonControl1.SystemText.QatDialogAddButton = "&Add >>"; this.ribbonControl1.SystemText.QatDialogCancelButton = "Cancel"; this.ribbonControl1.SystemText.QatDialogCaption = "Customize Quick Access Toolbar"; this.ribbonControl1.SystemText.QatDialogCategoriesLabel = "&Choose commands from:"; this.ribbonControl1.SystemText.QatDialogOkButton = "OK"; this.ribbonControl1.SystemText.QatDialogPlacementCheckbox = "&Place Quick Access Toolbar below the Ribbon"; this.ribbonControl1.SystemText.QatDialogRemoveButton = "&Remove"; this.ribbonControl1.SystemText.QatPlaceAboveRibbonText = "&Place Quick Access Toolbar above the Ribbon"; this.ribbonControl1.SystemText.QatPlaceBelowRibbonText = "&Place Quick Access Toolbar below the Ribbon"; this.ribbonControl1.SystemText.QatRemoveItemText = "&Remove from Quick Access Toolbar"; this.ribbonControl1.TabGroupHeight = 14; this.ribbonControl1.TabIndex = 8; // // ribPnlContext // this.ribPnlContext.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribPnlContext.Controls.Add(this.ribGrpMainLoop); this.ribPnlContext.Dock = System.Windows.Forms.DockStyle.Fill; this.ribPnlContext.Location = new System.Drawing.Point(0, 58); this.ribPnlContext.Name = "ribPnlContext"; this.ribPnlContext.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); this.ribPnlContext.Size = new System.Drawing.Size(958, 86); // // // this.ribPnlContext.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribPnlContext.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribPnlContext.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribPnlContext.TabIndex = 4; // // ribGrpMainLoop // this.ribGrpMainLoop.AutoOverflowEnabled = true; // // // this.ribGrpMainLoop.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribGrpMainLoop.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribGrpMainLoop.ContainerControlProcessDialogKey = true; this.ribGrpMainLoop.DragDropSupport = true; this.ribGrpMainLoop.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ribGrpMainLoop.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnParamIn4MainLoop, this.btnCalc4MainLoop, this.btnProcess4MainLoop}); this.ribGrpMainLoop.Location = new System.Drawing.Point(3, 0); this.ribGrpMainLoop.Name = "ribGrpMainLoop"; this.ribGrpMainLoop.Size = new System.Drawing.Size(189, 89); this.ribGrpMainLoop.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribGrpMainLoop.TabIndex = 0; this.ribGrpMainLoop.Text = "主回路状态计算"; // // // this.ribGrpMainLoop.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribGrpMainLoop.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // btnParamIn4MainLoop // this.btnParamIn4MainLoop.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.btnParamIn4MainLoop.Image = ((System.Drawing.Image)(resources.GetObject("btnParamIn4MainLoop.Image"))); this.btnParamIn4MainLoop.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.btnParamIn4MainLoop.Name = "btnParamIn4MainLoop"; this.btnParamIn4MainLoop.RibbonWordWrap = false; this.btnParamIn4MainLoop.Text = "参数录入"; // // btnCalc4MainLoop // this.btnCalc4MainLoop.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.btnCalc4MainLoop.Image = ((System.Drawing.Image)(resources.GetObject("btnCalc4MainLoop.Image"))); this.btnCalc4MainLoop.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.btnCalc4MainLoop.Name = "btnCalc4MainLoop"; this.btnCalc4MainLoop.RibbonWordWrap = false; this.btnCalc4MainLoop.Text = "工况计算"; // // btnProcess4MainLoop // this.btnProcess4MainLoop.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.btnProcess4MainLoop.Image = ((System.Drawing.Image)(resources.GetObject("btnProcess4MainLoop.Image"))); this.btnProcess4MainLoop.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.btnProcess4MainLoop.Name = "btnProcess4MainLoop"; this.btnProcess4MainLoop.RibbonWordWrap = false; this.btnProcess4MainLoop.Text = "结果处理"; // // ribPnlWrite // this.ribPnlWrite.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribPnlWrite.Controls.Add(this.ribTagParagraph); this.ribPnlWrite.Controls.Add(this.ribTagFont); this.ribPnlWrite.Controls.Add(this.ribTagClipboard); this.ribPnlWrite.Dock = System.Windows.Forms.DockStyle.Fill; this.ribPnlWrite.Location = new System.Drawing.Point(0, 58); this.ribPnlWrite.Name = "ribPnlWrite"; this.ribPnlWrite.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); this.ribPnlWrite.Size = new System.Drawing.Size(958, 86); // // // this.ribPnlWrite.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribPnlWrite.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribPnlWrite.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribPnlWrite.TabIndex = 1; this.ribPnlWrite.Visible = false; // // ribTagParagraph // this.ribTagParagraph.AutoOverflowEnabled = true; // // // this.ribTagParagraph.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagParagraph.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagParagraph.ContainerControlProcessDialogKey = true; this.ribTagParagraph.DialogLauncherVisible = true; this.ribTagParagraph.Dock = System.Windows.Forms.DockStyle.Left; this.ribTagParagraph.DragDropSupport = true; this.ribTagParagraph.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.itemContainerParagrapg1, this.itemContainerParagrapg3}); this.ribTagParagraph.Location = new System.Drawing.Point(242, 0); this.ribTagParagraph.Name = "ribTagParagraph"; this.ribTagParagraph.Size = new System.Drawing.Size(203, 83); this.ribTagParagraph.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribTagParagraph.TabIndex = 2; this.ribTagParagraph.Text = "&Paragraph"; // // // this.ribTagParagraph.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagParagraph.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagParagraph.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle; this.ribTagParagraph.LaunchDialog += new System.EventHandler(this.LaunchRibbonDialog); // // itemContainerParagrapg1 // // // // this.itemContainerParagrapg1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerParagrapg1.ItemSpacing = 3; this.itemContainerParagrapg1.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemContainerParagrapg1.Name = "itemContainerParagrapg1"; this.itemContainerParagrapg1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.itemContainerParagrapg2, this.itemContainerParagrapg4}); // // // this.itemContainerParagrapg1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerParagrapg1.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle; // // itemContainerParagrapg2 // // // // this.itemContainerParagrapg2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerParagrapg2.BeginGroup = true; this.itemContainerParagrapg2.Name = "itemContainerParagrapg2"; this.itemContainerParagrapg2.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonAlignLeft, this.buttonAlignCenter, this.buttonAlignRight, this.buttonAlignJustify}); // // // this.itemContainerParagrapg2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // buttonAlignLeft // this.buttonAlignLeft.Enabled = false; this.buttonAlignLeft.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignLeft.Image"))); this.buttonAlignLeft.Name = "buttonAlignLeft"; this.buttonAlignLeft.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlL); this.buttonAlignLeft.Text = "Align &Left"; // // buttonAlignCenter // this.buttonAlignCenter.Enabled = false; this.buttonAlignCenter.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignCenter.Image"))); this.buttonAlignCenter.Name = "buttonAlignCenter"; this.buttonAlignCenter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlE); this.buttonAlignCenter.Text = "Align &Center"; // // buttonAlignRight // this.buttonAlignRight.Enabled = false; this.buttonAlignRight.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignRight.Image"))); this.buttonAlignRight.Name = "buttonAlignRight"; this.buttonAlignRight.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlR); this.buttonAlignRight.Text = "Align &Right"; // // buttonAlignJustify // this.buttonAlignJustify.Enabled = false; this.buttonAlignJustify.Image = ((System.Drawing.Image)(resources.GetObject("buttonAlignJustify.Image"))); this.buttonAlignJustify.Name = "buttonAlignJustify"; this.buttonAlignJustify.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlJ); this.buttonAlignJustify.Text = "&Justify"; // // itemContainerParagrapg4 // // // // this.itemContainerParagrapg4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerParagrapg4.BeginGroup = true; this.itemContainerParagrapg4.Name = "itemContainerParagrapg4"; this.itemContainerParagrapg4.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnSeqNumber, this.btnGrade, this.btnToRigth, this.btnToLeft}); // // // this.itemContainerParagrapg4.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // btnSeqNumber // this.btnSeqNumber.Image = ((System.Drawing.Image)(resources.GetObject("btnSeqNumber.Image"))); this.btnSeqNumber.Name = "btnSeqNumber"; this.btnSeqNumber.Text = "&Numbered Bullets"; // // btnGrade // this.btnGrade.Image = ((System.Drawing.Image)(resources.GetObject("btnGrade.Image"))); this.btnGrade.Name = "btnGrade"; this.btnGrade.Text = "&Bullets"; // // btnToRigth // this.btnToRigth.Image = ((System.Drawing.Image)(resources.GetObject("btnToRigth.Image"))); this.btnToRigth.Name = "btnToRigth"; this.btnToRigth.Text = "&Indent"; // // btnToLeft // this.btnToLeft.Image = ((System.Drawing.Image)(resources.GetObject("btnToLeft.Image"))); this.btnToLeft.Name = "btnToLeft"; this.btnToLeft.Text = "&Outdent"; // // itemContainerParagrapg3 // // // // this.itemContainerParagrapg3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerParagrapg3.ItemSpacing = 3; this.itemContainerParagrapg3.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemContainerParagrapg3.Name = "itemContainerParagrapg3"; this.itemContainerParagrapg3.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnBorders, this.btnShading}); // // // this.itemContainerParagrapg3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerParagrapg3.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle; // // btnBorders // this.btnBorders.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.btnBorders.Image = ((System.Drawing.Image)(resources.GetObject("btnBorders.Image"))); this.btnBorders.Name = "btnBorders"; this.btnBorders.NotificationMarkText = "4"; this.btnBorders.Text = "&Borders"; this.btnBorders.Click += new System.EventHandler(this.buttonItem6_Click); // // btnShading // this.btnShading.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.btnShading.Image = ((System.Drawing.Image)(resources.GetObject("btnShading.Image"))); this.btnShading.Name = "btnShading"; this.btnShading.Text = "&Shading"; // // ribTagFont // this.ribTagFont.AutoOverflowEnabled = true; // // // this.ribTagFont.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagFont.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagFont.ContainerControlProcessDialogKey = true; this.ribTagFont.DialogLauncherVisible = true; this.ribTagFont.Dock = System.Windows.Forms.DockStyle.Left; this.ribTagFont.DragDropSupport = true; this.ribTagFont.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.itemContainerFont1, this.itemContainerFont2}); this.ribTagFont.ItemSpacing = 5; this.ribTagFont.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.ribTagFont.Location = new System.Drawing.Point(76, 0); this.ribTagFont.Name = "ribTagFont"; this.ribTagFont.ResizeItemsToFit = false; this.ribTagFont.Size = new System.Drawing.Size(166, 83); this.ribTagFont.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribTagFont.TabIndex = 1; this.ribTagFont.Text = "F&ont"; // // // this.ribTagFont.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagFont.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagFont.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle; this.ribTagFont.LaunchDialog += new System.EventHandler(this.LaunchRibbonDialog); // // itemContainerFont1 // // // // this.itemContainerFont1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerFont1.Name = "itemContainerFont1"; this.itemContainerFont1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.comboFont, this.comboFontSize}); // // // this.itemContainerFont1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // comboFont // this.comboFont.ComboWidth = 96; this.comboFont.DropDownHeight = 106; this.comboFont.DropDownWidth = 242; this.comboFont.Enabled = false; this.comboFont.FontCombo = true; this.comboFont.ItemHeight = 14; this.comboFont.Name = "comboFont"; // // comboFontSize // this.comboFontSize.ComboWidth = 40; this.comboFontSize.DropDownHeight = 106; this.comboFontSize.ItemHeight = 16; this.comboFontSize.Items.AddRange(new object[] { this.comboItem1, this.comboItem2, this.comboItem3, this.comboItem4, this.comboItem5}); this.comboFontSize.Name = "comboFontSize"; // // comboItem1 // this.comboItem1.Text = "6"; // // comboItem2 // this.comboItem2.Text = "7"; // // comboItem3 // this.comboItem3.Text = "8"; // // comboItem4 // this.comboItem4.Text = "9"; // // comboItem5 // this.comboItem5.Text = "10"; // // itemContainerFont2 // // // // this.itemContainerFont2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerFont2.BeginGroup = true; this.itemContainerFont2.Name = "itemContainerFont2"; this.itemContainerFont2.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonFontBold, this.buttonFontItalic, this.buttonFontUnderline, this.buttonFontStrike, this.buttonTextColor}); // // // this.itemContainerFont2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // buttonFontBold // this.buttonFontBold.Enabled = false; this.buttonFontBold.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontBold.Image"))); this.buttonFontBold.Name = "buttonFontBold"; this.buttonFontBold.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlB); this.buttonFontBold.Text = "&Bold"; // // buttonFontItalic // this.buttonFontItalic.Enabled = false; this.buttonFontItalic.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontItalic.Image"))); this.buttonFontItalic.Name = "buttonFontItalic"; this.buttonFontItalic.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlI); this.buttonFontItalic.Text = "&Italic"; // // buttonFontUnderline // this.buttonFontUnderline.Enabled = false; this.buttonFontUnderline.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontUnderline.Image"))); this.buttonFontUnderline.Name = "buttonFontUnderline"; this.buttonFontUnderline.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlU); this.buttonFontUnderline.Text = "&Underline"; // // buttonFontStrike // this.buttonFontStrike.Enabled = false; this.buttonFontStrike.Image = ((System.Drawing.Image)(resources.GetObject("buttonFontStrike.Image"))); this.buttonFontStrike.Name = "buttonFontStrike"; this.buttonFontStrike.Text = "&Strike"; // // buttonTextColor // this.buttonTextColor.Enabled = false; this.buttonTextColor.Image = ((System.Drawing.Image)(resources.GetObject("buttonTextColor.Image"))); this.buttonTextColor.Name = "buttonTextColor"; this.buttonTextColor.SelectedColorImageRectangle = new System.Drawing.Rectangle(0, 13, 16, 3); this.buttonTextColor.Text = "Text &Color"; // // ribTagClipboard // this.ribTagClipboard.AutoOverflowEnabled = true; // // // this.ribTagClipboard.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagClipboard.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagClipboard.ContainerControlProcessDialogKey = true; this.ribTagClipboard.DialogLauncherVisible = true; this.ribTagClipboard.Dock = System.Windows.Forms.DockStyle.Left; this.ribTagClipboard.DragDropSupport = true; this.ribTagClipboard.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonPaste, this.itemContainerClipboard}); this.ribTagClipboard.Location = new System.Drawing.Point(3, 0); this.ribTagClipboard.Name = "ribTagClipboard"; this.ribTagClipboard.Size = new System.Drawing.Size(73, 83); this.ribTagClipboard.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribTagClipboard.TabIndex = 0; this.ribTagClipboard.Text = "&Clipboard"; // // // this.ribTagClipboard.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagClipboard.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagClipboard.LaunchDialog += new System.EventHandler(this.LaunchRibbonDialog); // // buttonPaste // this.buttonPaste.Image = ((System.Drawing.Image)(resources.GetObject("buttonPaste.Image"))); this.buttonPaste.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonPaste.Name = "buttonPaste"; this.buttonPaste.SplitButton = true; this.buttonPaste.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem53, this.btnPasteSpecial}); this.buttonPaste.Text = "&Paste"; // // buttonItem53 // this.buttonItem53.Enabled = false; this.buttonItem53.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem53.Image"))); this.buttonItem53.Name = "buttonItem53"; this.buttonItem53.Text = "&Paste"; // // btnPasteSpecial // this.btnPasteSpecial.Image = ((System.Drawing.Image)(resources.GetObject("btnPasteSpecial.Image"))); this.btnPasteSpecial.Name = "btnPasteSpecial"; this.btnPasteSpecial.Text = "Paste &Special..."; // // itemContainerClipboard // // // // this.itemContainerClipboard.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerClipboard.ItemSpacing = 0; this.itemContainerClipboard.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemContainerClipboard.Name = "itemContainerClipboard"; this.itemContainerClipboard.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonCut, this.btnFormat}); // // // this.itemContainerClipboard.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // buttonCut // this.buttonCut.Enabled = false; this.buttonCut.Image = ((System.Drawing.Image)(resources.GetObject("buttonCut.Image"))); this.buttonCut.Name = "buttonCut"; this.buttonCut.Text = "Cu&t"; // // btnFormat // this.btnFormat.Image = ((System.Drawing.Image)(resources.GetObject("btnFormat.Image"))); this.btnFormat.Name = "btnFormat"; this.btnFormat.Text = "Format Painter"; // // ribPnlLayout // this.ribPnlLayout.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribPnlLayout.Controls.Add(this.ribBarOptions); this.ribPnlLayout.Controls.Add(this.ribBarFind); this.ribPnlLayout.Controls.Add(this.ribTagPageSetup); this.ribPnlLayout.Dock = System.Windows.Forms.DockStyle.Fill; this.ribPnlLayout.Location = new System.Drawing.Point(0, 58); this.ribPnlLayout.Name = "ribPnlLayout"; this.ribPnlLayout.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); this.ribPnlLayout.Size = new System.Drawing.Size(958, 86); // // // this.ribPnlLayout.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribPnlLayout.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribPnlLayout.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribPnlLayout.TabIndex = 3; this.ribPnlLayout.Visible = false; // // ribBarOptions // this.ribBarOptions.AutoOverflowEnabled = true; // // // this.ribBarOptions.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribBarOptions.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribBarOptions.ContainerControlProcessDialogKey = true; this.ribBarOptions.Dock = System.Windows.Forms.DockStyle.Left; this.ribBarOptions.DragDropSupport = true; this.ribBarOptions.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.itemContainerOptions1, this.itemContainer1Options2}); this.ribBarOptions.ItemSpacing = 4; this.ribBarOptions.Location = new System.Drawing.Point(375, 0); this.ribBarOptions.Name = "ribBarOptions"; this.ribBarOptions.Size = new System.Drawing.Size(200, 83); this.ribBarOptions.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribBarOptions.TabIndex = 4; this.ribBarOptions.Text = "Options"; // // // this.ribBarOptions.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribBarOptions.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // itemContainerOptions1 // // // // this.itemContainerOptions1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerOptions1.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemContainerOptions1.Name = "itemContainerOptions1"; this.itemContainerOptions1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.checkBoxItem1, this.checkBoxItem3}); // // // this.itemContainerOptions1.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // checkBoxItem1 // this.checkBoxItem1.Checked = true; this.checkBoxItem1.CheckState = System.Windows.Forms.CheckState.Indeterminate; this.checkBoxItem1.Name = "checkBoxItem1"; this.checkBoxItem1.Text = "Header"; this.checkBoxItem1.ThreeState = true; // // checkBoxItem3 // this.checkBoxItem3.Checked = true; this.checkBoxItem3.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxItem3.Name = "checkBoxItem3"; this.checkBoxItem3.Text = "Margins"; // // itemContainer1Options2 // // // // this.itemContainer1Options2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainer1Options2.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemContainer1Options2.Name = "itemContainer1Options2"; this.itemContainer1Options2.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.checkBoxItem4, this.checkBoxItem6}); // // // this.itemContainer1Options2.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // checkBoxItem4 // this.checkBoxItem4.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton; this.checkBoxItem4.Name = "checkBoxItem4"; this.checkBoxItem4.Text = "Horizontal Layout"; // // checkBoxItem6 // this.checkBoxItem6.CheckBoxStyle = DevComponents.DotNetBar.eCheckBoxStyle.RadioButton; this.checkBoxItem6.Checked = true; this.checkBoxItem6.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxItem6.Name = "checkBoxItem6"; this.checkBoxItem6.Text = "Automatic Layout"; // // ribBarFind // this.ribBarFind.AutoOverflowEnabled = true; // // // this.ribBarFind.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribBarFind.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribBarFind.ContainerControlProcessDialogKey = true; this.ribBarFind.DialogLauncherVisible = true; this.ribBarFind.Dock = System.Windows.Forms.DockStyle.Left; this.ribBarFind.DragDropSupport = true; this.ribBarFind.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonFind, this.itemContainerFind}); this.ribBarFind.Location = new System.Drawing.Point(231, 0); this.ribBarFind.Name = "ribBarFind"; this.ribBarFind.Size = new System.Drawing.Size(144, 83); this.ribBarFind.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribBarFind.TabIndex = 3; this.ribBarFind.Text = "Fi&nd"; // // // this.ribBarFind.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribBarFind.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribBarFind.LaunchDialog += new System.EventHandler(this.LaunchRibbonDialog); // // buttonFind // this.buttonFind.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonFind.Enabled = false; this.buttonFind.Image = ((System.Drawing.Image)(resources.GetObject("buttonFind.Image"))); this.buttonFind.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonFind.Name = "buttonFind"; this.buttonFind.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.CtrlF); this.buttonFind.Text = "&Find"; // // itemContainerFind // // // // this.itemContainerFind.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainerFind.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemContainerFind.Name = "itemContainerFind"; this.itemContainerFind.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonReplace, this.buttonGoto}); // // // this.itemContainerFind.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // buttonReplace // this.buttonReplace.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonReplace.Enabled = false; this.buttonReplace.Image = ((System.Drawing.Image)(resources.GetObject("buttonReplace.Image"))); this.buttonReplace.Name = "buttonReplace"; this.buttonReplace.Text = "&Replace"; // // buttonGoto // this.buttonGoto.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonGoto.Enabled = false; this.buttonGoto.Image = ((System.Drawing.Image)(resources.GetObject("buttonGoto.Image"))); this.buttonGoto.Name = "buttonGoto"; this.buttonGoto.Text = "&Goto"; // // ribTagPageSetup // this.ribTagPageSetup.AutoOverflowEnabled = true; // // // this.ribTagPageSetup.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagPageSetup.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagPageSetup.ContainerControlProcessDialogKey = true; this.ribTagPageSetup.DialogLauncherVisible = true; this.ribTagPageSetup.Dock = System.Windows.Forms.DockStyle.Left; this.ribTagPageSetup.DragDropSupport = true; this.ribTagPageSetup.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonMargins, this.btnOrientation, this.btnSize, this.btnPrintArea}); this.ribTagPageSetup.Location = new System.Drawing.Point(3, 0); this.ribTagPageSetup.Name = "ribTagPageSetup"; this.ribTagPageSetup.Size = new System.Drawing.Size(228, 83); this.ribTagPageSetup.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.ribTagPageSetup.TabIndex = 1; this.ribTagPageSetup.Text = "Page Setup"; // // // this.ribTagPageSetup.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // // this.ribTagPageSetup.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.ribTagPageSetup.LaunchDialog += new System.EventHandler(this.LaunchRibbonDialog); // // buttonMargins // this.buttonMargins.Image = ((System.Drawing.Image)(resources.GetObject("buttonMargins.Image"))); this.buttonMargins.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonMargins.Name = "buttonMargins"; this.buttonMargins.Text = "Margins"; // // btnOrientation // this.btnOrientation.AutoExpandOnClick = true; this.btnOrientation.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.btnOrientation.Image = ((System.Drawing.Image)(resources.GetObject("btnOrientation.Image"))); this.btnOrientation.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.btnOrientation.Name = "btnOrientation"; this.btnOrientation.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.btnAuto, this.btnHorizontal, this.btnVertical}); this.btnOrientation.Text = "Orientation <expand/>"; // // btnAuto // this.btnAuto.Checked = true; this.btnAuto.Name = "btnAuto"; this.btnAuto.OptionGroup = "orientation"; this.btnAuto.Text = "Auto"; // // btnHorizontal // this.btnHorizontal.Name = "btnHorizontal"; this.btnHorizontal.OptionGroup = "orientation"; this.btnHorizontal.Text = "Horizontal"; // // btnVertical // this.btnVertical.Name = "btnVertical"; this.btnVertical.OptionGroup = "orientation"; this.btnVertical.Text = "Vertical"; // // btnSize // this.btnSize.Image = ((System.Drawing.Image)(resources.GetObject("btnSize.Image"))); this.btnSize.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.btnSize.Name = "btnSize"; this.btnSize.Text = "Size"; // // btnPrintArea // this.btnPrintArea.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.btnPrintArea.Image = ((System.Drawing.Image)(resources.GetObject("btnPrintArea.Image"))); this.btnPrintArea.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.btnPrintArea.Name = "btnPrintArea"; this.btnPrintArea.Text = "Print Area"; // // ribTabPrjManage // this.ribTabPrjManage.Name = "ribTabPrjManage"; this.ribTabPrjManage.Panel = this.ribPnlWrite; this.ribTabPrjManage.Text = "工程管理"; // // ribTabMainDevice // this.ribTabMainDevice.Name = "ribTabMainDevice"; this.ribTabMainDevice.Panel = this.ribPnlLayout; this.ribTabMainDevice.Text = "主设备参数选择"; // // ribTagMainLoop // this.ribTagMainLoop.Checked = true; this.ribTagMainLoop.ColorTable = DevComponents.DotNetBar.eRibbonTabColor.Orange; this.ribTagMainLoop.Name = "ribTagMainLoop"; this.ribTagMainLoop.Panel = this.ribPnlContext; this.ribTagMainLoop.Text = "主回路状态计算"; // // buttonChangeStyle // this.buttonChangeStyle.AutoExpandOnClick = true; this.buttonChangeStyle.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Far; this.buttonChangeStyle.Name = "buttonChangeStyle"; this.buttonChangeStyle.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonStyleOffice2007Blue, this.buttonStyleOffice2007Silver}); this.buttonChangeStyle.Text = "Style"; // // buttonStyleOffice2007Blue // this.buttonStyleOffice2007Blue.Command = this.AppCommandTheme; this.buttonStyleOffice2007Blue.CommandParameter = "Office2007Blue"; this.buttonStyleOffice2007Blue.Name = "buttonStyleOffice2007Blue"; this.buttonStyleOffice2007Blue.OptionGroup = "style"; this.buttonStyleOffice2007Blue.Text = "Office 2007 <font color=\"Blue\"><b>Blue</b></font>"; // // AppCommandTheme // this.AppCommandTheme.Name = "AppCommandTheme"; this.AppCommandTheme.Executed += new System.EventHandler(this.AppCommandTheme_Executed); // // buttonStyleOffice2007Silver // this.buttonStyleOffice2007Silver.Command = this.AppCommandTheme; this.buttonStyleOffice2007Silver.CommandParameter = "Office2007Silver"; this.buttonStyleOffice2007Silver.Name = "buttonStyleOffice2007Silver"; this.buttonStyleOffice2007Silver.OptionGroup = "style"; this.buttonStyleOffice2007Silver.Text = "Office 2007 <font color=\"Silver\"><b>Silver</b></font>"; // // buttonFile // this.buttonFile.BackstageTab = this.superTabControl1; this.buttonFile.CanCustomize = false; this.buttonFile.HotTrackingStyle = DevComponents.DotNetBar.eHotTrackingStyle.Image; this.buttonFile.Image = ((System.Drawing.Image)(resources.GetObject("buttonFile.Image"))); this.buttonFile.ImagePaddingHorizontal = 2; this.buttonFile.ImagePaddingVertical = 2; this.buttonFile.Name = "buttonFile"; this.buttonFile.ShowSubItems = false; this.buttonFile.Text = "&FILE"; // // superTabControl1 // this.superTabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.superTabControl1.BackColor = System.Drawing.Color.White; // // // // // // this.superTabControl1.ControlBox.CloseBox.Name = ""; // // // this.superTabControl1.ControlBox.MenuBox.Name = ""; this.superTabControl1.ControlBox.Name = ""; this.superTabControl1.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.superTabControl1.ControlBox.MenuBox, this.superTabControl1.ControlBox.CloseBox}); this.superTabControl1.ControlBox.Visible = false; this.superTabControl1.Controls.Add(this.superTabControlPanel1); this.superTabControl1.Controls.Add(this.superTabControlPanel2); this.superTabControl1.Controls.Add(this.superTabControlPanel3); this.superTabControl1.Controls.Add(this.superTabControlPanel4); this.superTabControl1.ForeColor = System.Drawing.Color.Black; this.superTabControl1.ItemPadding.Left = 6; this.superTabControl1.ItemPadding.Right = 4; this.superTabControl1.ItemPadding.Top = 4; this.superTabControl1.Location = new System.Drawing.Point(6, 47); this.superTabControl1.Name = "superTabControl1"; this.superTabControl1.ReorderTabsEnabled = false; this.superTabControl1.SelectedTabFont = new System.Drawing.Font("Segoe UI", 9.75F); this.superTabControl1.SelectedTabIndex = 0; this.superTabControl1.Size = new System.Drawing.Size(958, 578); this.superTabControl1.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Left; this.superTabControl1.TabFont = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.superTabControl1.TabHorizontalSpacing = 16; this.superTabControl1.TabIndex = 14; this.superTabControl1.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem61, this.buttonItem63, this.buttonItem64, this.superTabItem1, this.superTabItem2, this.superTabItem3, this.superTabItem4, this.buttonItem65, this.buttonItem66}); this.superTabControl1.TabVerticalSpacing = 8; // // superTabControlPanel1 // this.superTabControlPanel1.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.BottomRight; this.superTabControlPanel1.Controls.Add(this.panelEx2); this.superTabControlPanel1.Controls.Add(this.panelEx1); this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.superTabControlPanel1.Location = new System.Drawing.Point(236, 0); this.superTabControlPanel1.Name = "superTabControlPanel1"; this.superTabControlPanel1.Size = new System.Drawing.Size(722, 578); this.superTabControlPanel1.TabIndex = 1; this.superTabControlPanel1.TabItem = this.superTabItem1; // // panelEx2 // this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control; this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.panelEx2.Controls.Add(this.recentPlacesItemsPanel); this.panelEx2.Controls.Add(this.labelX2); this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty; this.panelEx2.Dock = System.Windows.Forms.DockStyle.Fill; this.panelEx2.Location = new System.Drawing.Point(314, 0); this.panelEx2.Name = "panelEx2"; this.panelEx2.Padding = new System.Windows.Forms.Padding(12); this.panelEx2.Size = new System.Drawing.Size(408, 578); this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.Transparent; this.panelEx2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelEx2.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.Right; this.panelEx2.Style.GradientAngle = 90; this.panelEx2.TabIndex = 1; this.panelEx2.Text = "panelEx2"; // // recentPlacesItemsPanel // this.recentPlacesItemsPanel.AutoScroll = true; // // // this.recentPlacesItemsPanel.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.recentPlacesItemsPanel.ContainerControlProcessDialogKey = true; this.recentPlacesItemsPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.recentPlacesItemsPanel.DragDropSupport = true; this.recentPlacesItemsPanel.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.recentPlacesItemsPanel.Location = new System.Drawing.Point(12, 35); this.recentPlacesItemsPanel.Name = "recentPlacesItemsPanel"; this.recentPlacesItemsPanel.Size = new System.Drawing.Size(384, 531); this.recentPlacesItemsPanel.TabIndex = 2; // // labelX2 // // // // this.labelX2.BackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Dash; this.labelX2.BackgroundStyle.BorderBottomColor = System.Drawing.Color.Gray; this.labelX2.BackgroundStyle.BorderBottomWidth = 1; this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX2.Dock = System.Windows.Forms.DockStyle.Top; this.labelX2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX2.ForeColor = System.Drawing.Color.DimGray; this.labelX2.Location = new System.Drawing.Point(12, 12); this.labelX2.Name = "labelX2"; this.labelX2.Size = new System.Drawing.Size(384, 23); this.labelX2.TabIndex = 0; this.labelX2.Text = "Recent Places"; // // panelEx1 // this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.panelEx1.Controls.Add(this.recentDocsItemPane); this.panelEx1.Controls.Add(this.labelX1); this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; this.panelEx1.Dock = System.Windows.Forms.DockStyle.Left; this.panelEx1.Location = new System.Drawing.Point(0, 0); this.panelEx1.Name = "panelEx1"; this.panelEx1.Padding = new System.Windows.Forms.Padding(12); this.panelEx1.Size = new System.Drawing.Size(314, 578); this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.Transparent; this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelEx1.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.Right; this.panelEx1.Style.GradientAngle = 90; this.panelEx1.TabIndex = 0; this.panelEx1.Text = "panelEx1"; // // recentDocsItemPane // this.recentDocsItemPane.AutoScroll = true; // // // this.recentDocsItemPane.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.recentDocsItemPane.ContainerControlProcessDialogKey = true; this.recentDocsItemPane.Dock = System.Windows.Forms.DockStyle.Fill; this.recentDocsItemPane.DragDropSupport = true; this.recentDocsItemPane.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.recentDocsItemPane.Location = new System.Drawing.Point(12, 35); this.recentDocsItemPane.Name = "recentDocsItemPane"; this.recentDocsItemPane.Size = new System.Drawing.Size(290, 531); this.recentDocsItemPane.TabIndex = 1; // // labelX1 // // // // this.labelX1.BackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Dash; this.labelX1.BackgroundStyle.BorderBottomColor = System.Drawing.Color.Gray; this.labelX1.BackgroundStyle.BorderBottomWidth = 1; this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Dock = System.Windows.Forms.DockStyle.Top; this.labelX1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX1.ForeColor = System.Drawing.Color.DimGray; this.labelX1.Location = new System.Drawing.Point(12, 12); this.labelX1.Name = "labelX1"; this.labelX1.Size = new System.Drawing.Size(290, 23); this.labelX1.TabIndex = 0; this.labelX1.Text = "Recent Documents"; // // superTabItem1 // this.superTabItem1.AttachedControl = this.superTabControlPanel1; this.superTabItem1.GlobalItem = false; this.superTabItem1.KeyTips = "R"; this.superTabItem1.Name = "superTabItem1"; this.superTabItem1.Text = "Recent"; // // superTabControlPanel2 // this.superTabControlPanel2.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.BottomRight; this.superTabControlPanel2.Controls.Add(this.itemPanel1); this.superTabControlPanel2.Controls.Add(this.labelX3); this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.superTabControlPanel2.Location = new System.Drawing.Point(236, 0); this.superTabControlPanel2.Name = "superTabControlPanel2"; this.superTabControlPanel2.Padding = new System.Windows.Forms.Padding(12); this.superTabControlPanel2.Size = new System.Drawing.Size(722, 578); this.superTabControlPanel2.TabIndex = 2; this.superTabControlPanel2.TabItem = this.superTabItem2; // // itemPanel1 // this.itemPanel1.AutoScroll = true; this.itemPanel1.BackColor = System.Drawing.Color.Transparent; // // // this.itemPanel1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemPanel1.ContainerControlProcessDialogKey = true; this.itemPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.itemPanel1.DragDropSupport = true; this.itemPanel1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem67, this.buttonItem68, this.buttonItem69, this.buttonItem70, this.buttonItem71, this.buttonItem72}); this.itemPanel1.Location = new System.Drawing.Point(12, 35); this.itemPanel1.MultiLine = true; this.itemPanel1.Name = "itemPanel1"; this.itemPanel1.Size = new System.Drawing.Size(698, 531); this.itemPanel1.TabIndex = 3; // // buttonItem67 // this.buttonItem67.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem67.ForeColor = System.Drawing.Color.Black; this.buttonItem67.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem67.Image"))); this.buttonItem67.ImagePaddingVertical = 12; this.buttonItem67.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonItem67.Name = "buttonItem67"; this.buttonItem67.Text = "<span align=\"center\">Blank<br/>document</span>"; // // buttonItem68 // this.buttonItem68.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem68.ForeColor = System.Drawing.Color.Black; this.buttonItem68.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem68.Image"))); this.buttonItem68.ImagePaddingVertical = 12; this.buttonItem68.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonItem68.Name = "buttonItem68"; this.buttonItem68.Text = "Blog post"; // // buttonItem69 // this.buttonItem69.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem69.ForeColor = System.Drawing.Color.Black; this.buttonItem69.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem69.Image"))); this.buttonItem69.ImagePaddingHorizontal = 12; this.buttonItem69.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonItem69.Name = "buttonItem69"; this.buttonItem69.Text = "<span align=\"center\">Recent<br/>templates</span>"; // // buttonItem70 // this.buttonItem70.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem70.ForeColor = System.Drawing.Color.Black; this.buttonItem70.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem70.Image"))); this.buttonItem70.ImagePaddingHorizontal = 12; this.buttonItem70.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonItem70.Name = "buttonItem70"; this.buttonItem70.Text = "<span align=\"center\">Sample<br/>templates</span>"; // // buttonItem71 // this.buttonItem71.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem71.ForeColor = System.Drawing.Color.Black; this.buttonItem71.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem71.Image"))); this.buttonItem71.ImagePaddingHorizontal = 12; this.buttonItem71.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonItem71.Name = "buttonItem71"; this.buttonItem71.Text = "My templates"; // // buttonItem72 // this.buttonItem72.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem72.ForeColor = System.Drawing.Color.Black; this.buttonItem72.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem72.Image"))); this.buttonItem72.ImagePaddingHorizontal = 12; this.buttonItem72.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonItem72.Name = "buttonItem72"; this.buttonItem72.Text = "<span align=\"center\">New from<br/>existing</span>"; // // labelX3 // this.labelX3.BackColor = System.Drawing.Color.Transparent; // // // this.labelX3.BackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Dash; this.labelX3.BackgroundStyle.BorderBottomColor = System.Drawing.Color.Gray; this.labelX3.BackgroundStyle.BorderBottomWidth = 1; this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX3.Dock = System.Windows.Forms.DockStyle.Top; this.labelX3.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX3.ForeColor = System.Drawing.Color.DimGray; this.labelX3.Location = new System.Drawing.Point(12, 12); this.labelX3.Name = "labelX3"; this.labelX3.Size = new System.Drawing.Size(698, 23); this.labelX3.TabIndex = 1; this.labelX3.Text = "Available Templates"; // // superTabItem2 // this.superTabItem2.AttachedControl = this.superTabControlPanel2; this.superTabItem2.GlobalItem = false; this.superTabItem2.KeyTips = "N"; this.superTabItem2.Name = "superTabItem2"; this.superTabItem2.Text = "New"; // // superTabControlPanel3 // this.superTabControlPanel3.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.BottomRight; this.superTabControlPanel3.Controls.Add(this.panelEx3); this.superTabControlPanel3.Controls.Add(this.labelX5); this.superTabControlPanel3.Controls.Add(this.integerInput1); this.superTabControlPanel3.Controls.Add(this.labelX4); this.superTabControlPanel3.Controls.Add(this.buttonX1); this.superTabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.superTabControlPanel3.Location = new System.Drawing.Point(236, 0); this.superTabControlPanel3.Name = "superTabControlPanel3"; this.superTabControlPanel3.Size = new System.Drawing.Size(722, 578); this.superTabControlPanel3.TabIndex = 3; this.superTabControlPanel3.TabItem = this.superTabItem3; // // panelEx3 // this.panelEx3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelEx3.CanvasColor = System.Drawing.SystemColors.Control; this.panelEx3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.panelEx3.DisabledBackColor = System.Drawing.Color.Empty; this.panelEx3.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.panelEx3.Location = new System.Drawing.Point(292, 4); this.panelEx3.Name = "panelEx3"; this.panelEx3.Size = new System.Drawing.Size(427, 571); this.panelEx3.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelEx3.Style.BackColor1.Color = System.Drawing.Color.White; this.panelEx3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelEx3.Style.BorderColor.Color = System.Drawing.Color.Silver; this.panelEx3.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.Left; this.panelEx3.Style.ForeColor.Color = System.Drawing.Color.Gray; this.panelEx3.Style.GradientAngle = 90; this.panelEx3.TabIndex = 5; this.panelEx3.Text = "Print Preview Goes Here..."; // // labelX5 // this.labelX5.BackColor = System.Drawing.Color.Transparent; // // // this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX5.ForeColor = System.Drawing.Color.Black; this.labelX5.Location = new System.Drawing.Point(143, 54); this.labelX5.Name = "labelX5"; this.labelX5.Size = new System.Drawing.Size(48, 19); this.labelX5.TabIndex = 4; this.labelX5.Text = "Copies:"; // // integerInput1 // // // // this.integerInput1.BackgroundStyle.Class = "DateTimeInputBackground"; this.integerInput1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.integerInput1.ButtonFreeText.Shortcut = DevComponents.DotNetBar.eShortcut.F2; this.integerInput1.Location = new System.Drawing.Point(198, 53); this.integerInput1.Name = "integerInput1"; this.integerInput1.ShowUpDown = true; this.integerInput1.Size = new System.Drawing.Size(66, 22); this.integerInput1.TabIndex = 3; this.integerInput1.Value = 1; // // labelX4 // this.labelX4.BackColor = System.Drawing.Color.Transparent; // // // this.labelX4.BackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Dash; this.labelX4.BackgroundStyle.BorderBottomColor = System.Drawing.Color.Gray; this.labelX4.BackgroundStyle.BorderBottomWidth = 1; this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX4.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX4.ForeColor = System.Drawing.Color.DimGray; this.labelX4.Location = new System.Drawing.Point(144, 16); this.labelX4.Name = "labelX4"; this.labelX4.Size = new System.Drawing.Size(120, 23); this.labelX4.TabIndex = 2; this.labelX4.Text = "Print"; // // buttonX1 // this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.Office2007WithBackground; this.buttonX1.Image = ((System.Drawing.Image)(resources.GetObject("buttonX1.Image"))); this.buttonX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonX1.Location = new System.Drawing.Point(21, 21); this.buttonX1.Name = "buttonX1"; this.buttonX1.Size = new System.Drawing.Size(109, 101); this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.buttonX1.TabIndex = 0; this.buttonX1.Text = "Print"; // // superTabItem3 // this.superTabItem3.AttachedControl = this.superTabControlPanel3; this.superTabItem3.GlobalItem = false; this.superTabItem3.KeyTips = "P"; this.superTabItem3.Name = "superTabItem3"; this.superTabItem3.Text = "Print"; // // superTabControlPanel4 // this.superTabControlPanel4.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.BottomRight; this.superTabControlPanel4.Controls.Add(this.itemPanel2); this.superTabControlPanel4.Controls.Add(this.labelX6); this.superTabControlPanel4.Dock = System.Windows.Forms.DockStyle.Fill; this.superTabControlPanel4.Location = new System.Drawing.Point(236, 0); this.superTabControlPanel4.Name = "superTabControlPanel4"; this.superTabControlPanel4.Padding = new System.Windows.Forms.Padding(12); this.superTabControlPanel4.Size = new System.Drawing.Size(722, 578); this.superTabControlPanel4.TabIndex = 4; this.superTabControlPanel4.TabItem = this.superTabItem4; // // itemPanel2 // this.itemPanel2.AutoScroll = true; this.itemPanel2.BackColor = System.Drawing.Color.Transparent; // // // this.itemPanel2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemPanel2.ContainerControlProcessDialogKey = true; this.itemPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.itemPanel2.DragDropSupport = true; this.itemPanel2.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem77, this.buttonItem73, this.buttonItem74, this.buttonItem75, this.buttonItem76}); this.itemPanel2.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemPanel2.Location = new System.Drawing.Point(12, 35); this.itemPanel2.Name = "itemPanel2"; this.itemPanel2.Size = new System.Drawing.Size(698, 531); this.itemPanel2.TabIndex = 3; // // buttonItem77 // this.buttonItem77.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem77.CommandParameter = "http://www.devcomponents.com/kb/questions.php?questionid=127"; this.buttonItem77.ForeColor = System.Drawing.Color.Black; this.buttonItem77.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem77.Image"))); this.buttonItem77.Name = "buttonItem77"; this.buttonItem77.Text = "Backstage<br/>\r\n<font color=\"Gray\">How to build Office 2010 style Backstage with " + "DotNetBar</font>"; // // buttonItem73 // this.buttonItem73.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem73.CommandParameter = "http://www.devcomponents.com/kb/"; this.buttonItem73.ForeColor = System.Drawing.Color.Black; this.buttonItem73.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem73.Image"))); this.buttonItem73.Name = "buttonItem73"; this.buttonItem73.Text = "DotNetBar Knowledge Base<br/>\r\n<font color=\"Gray\">Browse our online Knowledge Bas" + "e.</font>"; // // buttonItem74 // this.buttonItem74.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem74.CommandParameter = "http://www.devcomponents.com/dotnetbar/movies.aspx"; this.buttonItem74.ForeColor = System.Drawing.Color.Black; this.buttonItem74.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem74.Image"))); this.buttonItem74.Name = "buttonItem74"; this.buttonItem74.Text = "Movie Tutorials<br/>\r\n<font color=\"Gray\">Watch getting started online movie tutor" + "ials</font>"; // // buttonItem75 // this.buttonItem75.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem75.CommandParameter = "http://www.devcomponents.com/support.aspx"; this.buttonItem75.ForeColor = System.Drawing.Color.Black; this.buttonItem75.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem75.Image"))); this.buttonItem75.Name = "buttonItem75"; this.buttonItem75.Text = "Contact Us<br/>\r\n<font color=\"Gray\">Let us know if you need help or how we can ma" + "ke DotNetBar even better.</font>"; // // buttonItem76 // this.buttonItem76.BeginGroup = true; this.buttonItem76.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem76.CommandParameter = "http://www.devcomponents.com/dotnetbar/applicationgallery/"; this.buttonItem76.ForeColor = System.Drawing.Color.Black; this.buttonItem76.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem76.Image"))); this.buttonItem76.Name = "buttonItem76"; this.buttonItem76.Text = "Application Gallery<br/>\r\n<font color=\"Gray\">See how other developers are using D" + "otNetBar in our application gallery</font>"; // // labelX6 // this.labelX6.BackColor = System.Drawing.Color.Transparent; // // // this.labelX6.BackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Dash; this.labelX6.BackgroundStyle.BorderBottomColor = System.Drawing.Color.Gray; this.labelX6.BackgroundStyle.BorderBottomWidth = 1; this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX6.Dock = System.Windows.Forms.DockStyle.Top; this.labelX6.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX6.ForeColor = System.Drawing.Color.DimGray; this.labelX6.Location = new System.Drawing.Point(12, 12); this.labelX6.Name = "labelX6"; this.labelX6.Size = new System.Drawing.Size(698, 23); this.labelX6.TabIndex = 2; this.labelX6.Text = "Support"; // // superTabItem4 // this.superTabItem4.AttachedControl = this.superTabControlPanel4; this.superTabItem4.GlobalItem = false; this.superTabItem4.KeyTips = "H"; this.superTabItem4.Name = "superTabItem4"; this.superTabItem4.Text = "Help"; // // buttonItem61 // this.buttonItem61.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem61.ColorTable = DevComponents.DotNetBar.eButtonColor.Blue; this.buttonItem61.Command = this.AppCommandSave; this.buttonItem61.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem61.Image"))); this.buttonItem61.ImagePaddingHorizontal = 18; this.buttonItem61.ImagePaddingVertical = 10; this.buttonItem61.KeyTips = "S"; this.buttonItem61.Name = "buttonItem61"; this.buttonItem61.Stretch = true; this.buttonItem61.Text = "Save"; // // AppCommandSave // this.AppCommandSave.Name = "AppCommandSave"; // // buttonItem63 // this.buttonItem63.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem63.ColorTable = DevComponents.DotNetBar.eButtonColor.Blue; this.buttonItem63.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem63.Image"))); this.buttonItem63.ImagePaddingHorizontal = 18; this.buttonItem63.ImagePaddingVertical = 10; this.buttonItem63.KeyTips = "O"; this.buttonItem63.Name = "buttonItem63"; this.buttonItem63.Stretch = true; this.buttonItem63.Text = "Open"; // // buttonItem64 // this.buttonItem64.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem64.ColorTable = DevComponents.DotNetBar.eButtonColor.Blue; this.buttonItem64.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem64.Image"))); this.buttonItem64.ImagePaddingHorizontal = 18; this.buttonItem64.ImagePaddingVertical = 10; this.buttonItem64.KeyTips = "C"; this.buttonItem64.Name = "buttonItem64"; this.buttonItem64.Stretch = true; this.buttonItem64.Text = "Close"; // // buttonItem65 // this.buttonItem65.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem65.ColorTable = DevComponents.DotNetBar.eButtonColor.Blue; this.buttonItem65.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem65.Image"))); this.buttonItem65.ImagePaddingHorizontal = 18; this.buttonItem65.ImagePaddingVertical = 10; this.buttonItem65.KeyTips = "T"; this.buttonItem65.Name = "buttonItem65"; this.buttonItem65.Stretch = true; this.buttonItem65.Text = "Options"; // // buttonItem66 // this.buttonItem66.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem66.ColorTable = DevComponents.DotNetBar.eButtonColor.Blue; this.buttonItem66.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem66.Image"))); this.buttonItem66.ImagePaddingHorizontal = 18; this.buttonItem66.ImagePaddingVertical = 10; this.buttonItem66.KeyTips = "X"; this.buttonItem66.Name = "buttonItem66"; this.buttonItem66.Stretch = true; this.buttonItem66.Text = "Exit"; // // buttonSave // this.buttonSave.Command = this.AppCommandSave; this.buttonSave.Enabled = false; this.buttonSave.Image = ((System.Drawing.Image)(resources.GetObject("buttonSave.Image"))); this.buttonSave.Name = "buttonSave"; this.buttonSave.Text = "buttonItem2"; // // buttonUndo // this.buttonUndo.Enabled = false; this.buttonUndo.Name = "buttonUndo"; this.buttonUndo.Text = "Undo"; // // buttonItem47 // this.buttonItem47.BeginGroup = true; this.buttonItem47.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem47.Image"))); this.buttonItem47.Name = "buttonItem47"; this.buttonItem47.Text = "Search for Templates Online..."; // // buttonItem48 // this.buttonItem48.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem48.Image"))); this.buttonItem48.Name = "buttonItem48"; this.buttonItem48.Text = "Browse for Templates..."; // // buttonItem49 // this.buttonItem49.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem49.Image"))); this.buttonItem49.Name = "buttonItem49"; this.buttonItem49.Text = "Save Current Template..."; // // buttonItem17 // this.buttonItem17.Name = "buttonItem17"; // // buttonStyleMetro // this.buttonStyleMetro.Name = "buttonStyleMetro"; // // buttonItem62 // this.buttonItem62.Name = "buttonItem62"; // // buttonStyleOffice2007Black // this.buttonStyleOffice2007Black.Command = this.AppCommandTheme; this.buttonStyleOffice2007Black.CommandParameter = "Office2007Black"; this.buttonStyleOffice2007Black.Name = "buttonStyleOffice2007Black"; this.buttonStyleOffice2007Black.OptionGroup = "style"; this.buttonStyleOffice2007Black.Text = "Office 2007 <font color=\"black\"><b>Black</b></font>"; // // buttonItem60 // this.buttonItem60.Name = "buttonItem60"; // // buttonItem16 // this.buttonItem16.Name = "buttonItem16"; // // buttonStyleCustom // this.buttonStyleCustom.BeginGroup = true; this.buttonStyleCustom.Command = this.AppCommandTheme; this.buttonStyleCustom.Name = "buttonStyleCustom"; this.buttonStyleCustom.Text = "Custom scheme"; this.buttonStyleCustom.Tooltip = "Custom color scheme is created based on currently selected color table. Try selec" + "ting Silver or Blue color table and then creating custom color scheme."; this.buttonStyleCustom.SelectedColorChanged += new System.EventHandler(this.buttonStyleCustom_SelectedColorChanged); this.buttonStyleCustom.ColorPreview += new DevComponents.DotNetBar.ColorPreviewEventHandler(this.buttonStyleCustom_ColorPreview); this.buttonStyleCustom.ExpandChange += new System.EventHandler(this.buttonStyleCustom_ExpandChange); // // RibbonStateCommand // this.RibbonStateCommand.Name = "RibbonStateCommand"; this.RibbonStateCommand.Executed += new System.EventHandler(this.RibbonStateCommand_Executed); // // menuFileContainer // // // // this.menuFileContainer.BackgroundStyle.Class = "RibbonFileMenuContainer"; this.menuFileContainer.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.menuFileContainer.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.menuFileContainer.Name = "menuFileContainer"; this.menuFileContainer.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.menuFileTwoColumnContainer, this.menuFileBottomContainer}); // // // this.menuFileContainer.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // menuFileTwoColumnContainer // // // // this.menuFileTwoColumnContainer.BackgroundStyle.Class = "RibbonFileMenuTwoColumnContainer"; this.menuFileTwoColumnContainer.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.menuFileTwoColumnContainer.BackgroundStyle.PaddingBottom = 2; this.menuFileTwoColumnContainer.BackgroundStyle.PaddingLeft = 2; this.menuFileTwoColumnContainer.BackgroundStyle.PaddingRight = 2; this.menuFileTwoColumnContainer.BackgroundStyle.PaddingTop = 2; this.menuFileTwoColumnContainer.ItemSpacing = 0; this.menuFileTwoColumnContainer.Name = "menuFileTwoColumnContainer"; this.menuFileTwoColumnContainer.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.menuFileItems, this.menuFileMRU}); // // // this.menuFileTwoColumnContainer.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // menuFileItems // // // // this.menuFileItems.BackgroundStyle.Class = "RibbonFileMenuColumnOneContainer"; this.menuFileItems.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.menuFileItems.ItemSpacing = 5; this.menuFileItems.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.menuFileItems.MinimumSize = new System.Drawing.Size(120, 0); this.menuFileItems.Name = "menuFileItems"; this.menuFileItems.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem20, this.buttonItem21, this.buttonFileSaveAs, this.buttonItem23, this.buttonItem24, this.buttonItem25}); // // // this.menuFileItems.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // buttonItem20 // this.buttonItem20.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem20.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem20.Image"))); this.buttonItem20.ImageSmall = ((System.Drawing.Image)(resources.GetObject("buttonItem20.ImageSmall"))); this.buttonItem20.Name = "buttonItem20"; this.buttonItem20.SubItemsExpandWidth = 24; this.buttonItem20.Text = "&New"; // // buttonItem21 // this.buttonItem21.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem21.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem21.Image"))); this.buttonItem21.Name = "buttonItem21"; this.buttonItem21.SubItemsExpandWidth = 24; this.buttonItem21.Text = "&Open..."; // // buttonFileSaveAs // this.buttonFileSaveAs.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonFileSaveAs.Image = ((System.Drawing.Image)(resources.GetObject("buttonFileSaveAs.Image"))); this.buttonFileSaveAs.ImageSmall = ((System.Drawing.Image)(resources.GetObject("buttonFileSaveAs.ImageSmall"))); this.buttonFileSaveAs.Name = "buttonFileSaveAs"; this.buttonFileSaveAs.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.itemContainer12}); this.buttonFileSaveAs.SubItemsExpandWidth = 24; this.buttonFileSaveAs.Text = "&Save As..."; // // itemContainer12 // // // // this.itemContainer12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.itemContainer12.ItemSpacing = 4; this.itemContainer12.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.itemContainer12.MinimumSize = new System.Drawing.Size(210, 256); this.itemContainer12.Name = "itemContainer12"; this.itemContainer12.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.labelItem1, this.buttonItem56, this.buttonItem57, this.buttonItem58, this.buttonItem59}); // // // this.itemContainer12.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // labelItem1 // this.labelItem1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); this.labelItem1.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem1.BorderType = DevComponents.DotNetBar.eBorderType.Etched; this.labelItem1.Name = "labelItem1"; this.labelItem1.PaddingBottom = 5; this.labelItem1.PaddingLeft = 5; this.labelItem1.PaddingRight = 5; this.labelItem1.PaddingTop = 5; this.labelItem1.Text = "<b>Save a copy of the document</b>"; // // buttonItem56 // this.buttonItem56.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem56.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem56.Image"))); this.buttonItem56.Name = "buttonItem56"; this.buttonItem56.Text = "<b>&Rich Text Document</b>\r\n<div padding=\"0,0,4,0\" width=\"170\">Save the document " + "in the default file format.</div>"; // // buttonItem57 // this.buttonItem57.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem57.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem57.Image"))); this.buttonItem57.Name = "buttonItem57"; this.buttonItem57.Text = "<b>Document &Template</b>\r\n<div padding=\"0,0,4,0\" width=\"170\">Save as a template " + "that can be used to format future documents.</div>"; // // buttonItem58 // this.buttonItem58.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem58.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem58.Image"))); this.buttonItem58.Name = "buttonItem58"; this.buttonItem58.Text = "<b>&Find add-ins for other formats</b>\r\n<div padding=\"0,0,4,0\" width=\"180\">Learn " + "about add-ins to save to other formats such as PDF or XPS.</div>"; // // buttonItem59 // this.buttonItem59.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem59.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem59.Image"))); this.buttonItem59.Name = "buttonItem59"; this.buttonItem59.Text = "<b>&Other Formats</b>\r\n<div padding=\"0,0,4,0\" width=\"170\">Open the Save As dialog" + " box to select from all possible file types.</div>"; // // buttonItem23 // this.buttonItem23.BeginGroup = true; this.buttonItem23.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem23.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem23.Image"))); this.buttonItem23.Name = "buttonItem23"; this.buttonItem23.SubItemsExpandWidth = 24; this.buttonItem23.Text = "S&hare..."; // // buttonItem24 // this.buttonItem24.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem24.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem24.Image"))); this.buttonItem24.Name = "buttonItem24"; this.buttonItem24.SubItemsExpandWidth = 24; this.buttonItem24.Text = "&Print..."; // // buttonItem25 // this.buttonItem25.BeginGroup = true; this.buttonItem25.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem25.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem25.Image"))); this.buttonItem25.Name = "buttonItem25"; this.buttonItem25.SubItemsExpandWidth = 24; this.buttonItem25.Text = "&Close"; // // menuFileMRU // // // // this.menuFileMRU.BackgroundStyle.Class = "RibbonFileMenuColumnTwoContainer"; this.menuFileMRU.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.menuFileMRU.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; this.menuFileMRU.MinimumSize = new System.Drawing.Size(225, 0); this.menuFileMRU.Name = "menuFileMRU"; this.menuFileMRU.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.labelItem8, this.buttonItem26, this.buttonItem27, this.buttonItem28, this.buttonItem29}); // // // this.menuFileMRU.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // labelItem8 // this.labelItem8.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem8.BorderType = DevComponents.DotNetBar.eBorderType.Etched; this.labelItem8.Name = "labelItem8"; this.labelItem8.PaddingBottom = 2; this.labelItem8.PaddingTop = 2; this.labelItem8.Stretch = true; this.labelItem8.Text = "Recent Documents"; // // buttonItem26 // this.buttonItem26.Name = "buttonItem26"; this.buttonItem26.Text = "&1. Short News 5-7.rtf"; // // buttonItem27 // this.buttonItem27.Name = "buttonItem27"; this.buttonItem27.Text = "&2. Prospect Email.rtf"; // // buttonItem28 // this.buttonItem28.Name = "buttonItem28"; this.buttonItem28.Text = "&3. Customer Email.rtf"; // // buttonItem29 // this.buttonItem29.Name = "buttonItem29"; this.buttonItem29.Text = "&4. example.rtf"; // // menuFileBottomContainer // // // // this.menuFileBottomContainer.BackgroundStyle.Class = "RibbonFileMenuBottomContainer"; this.menuFileBottomContainer.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.menuFileBottomContainer.HorizontalItemAlignment = DevComponents.DotNetBar.eHorizontalItemsAlignment.Right; this.menuFileBottomContainer.Name = "menuFileBottomContainer"; this.menuFileBottomContainer.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonOptions, this.buttonExit}); // // // this.menuFileBottomContainer.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; // // buttonOptions // this.buttonOptions.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonOptions.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonOptions.Image = ((System.Drawing.Image)(resources.GetObject("buttonOptions.Image"))); this.buttonOptions.Name = "buttonOptions"; this.buttonOptions.SubItemsExpandWidth = 24; this.buttonOptions.Text = "RibbonPad Opt&ions"; // // buttonExit // this.buttonExit.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonExit.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonExit.Image = ((System.Drawing.Image)(resources.GetObject("buttonExit.Image"))); this.buttonExit.Name = "buttonExit"; this.buttonExit.SubItemsExpandWidth = 24; this.buttonExit.Text = "E&xit RibbonPad"; // // progressBarTimer // this.progressBarTimer.Enabled = true; this.progressBarTimer.Interval = 800; this.progressBarTimer.Tick += new System.EventHandler(this.progressBarTimer_Tick); // // styleManager // this.styleManager.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Silver; this.styleManager.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))), System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(115)))), ((int)(((byte)(199)))))); // // grpBoxTree // this.grpBoxTree.Controls.Add(this.treeView1); this.grpBoxTree.Location = new System.Drawing.Point(8, 154); this.grpBoxTree.Name = "grpBoxTree"; this.grpBoxTree.Size = new System.Drawing.Size(210, 443); this.grpBoxTree.TabIndex = 15; this.grpBoxTree.TabStop = false; // // treeView1 // this.treeView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill; this.treeView1.Font = new System.Drawing.Font("Segoe UI", 7.9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.treeView1.ImageIndex = 0; this.treeView1.ImageList = this.imageList; this.treeView1.Indent = 23; this.treeView1.ItemHeight = 18; this.treeView1.Location = new System.Drawing.Point(3, 18); this.treeView1.Name = "treeView1"; this.treeView1.SelectedImageIndex = 0; this.treeView1.Size = new System.Drawing.Size(204, 422); this.treeView1.TabIndex = 0; this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect); // // imageList // this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream"))); this.imageList.TransparentColor = System.Drawing.Color.Transparent; this.imageList.Images.SetKeyName(0, "node.png"); this.imageList.Images.SetKeyName(1, "leaf.png"); // // frmMain // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.ClientSize = new System.Drawing.Size(968, 630); this.Controls.Add(this.grpBoxTree); this.Controls.Add(this.superTabControl1); this.Controls.Add(this.ribbonControl1); this.Controls.Add(this.bar1); this.Controls.Add(this.mdiClient1); this.EnableGlass = false; this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.HelpButton = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.IsMdiContainer = true; this.Name = "frmMain"; this.Text = "DPCP SOFTWAVE"; this.Closing += new System.ComponentModel.CancelEventHandler(this.frmMain_Closing); this.Load += new System.EventHandler(this.frmMain_Load); ((System.ComponentModel.ISupportInitialize)(this.bar1)).EndInit(); this.ribbonControl1.ResumeLayout(false); this.ribbonControl1.PerformLayout(); this.ribPnlContext.ResumeLayout(false); this.ribPnlWrite.ResumeLayout(false); this.ribPnlLayout.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.superTabControl1)).EndInit(); this.superTabControl1.ResumeLayout(false); this.superTabControlPanel1.ResumeLayout(false); this.panelEx2.ResumeLayout(false); this.panelEx1.ResumeLayout(false); this.superTabControlPanel2.ResumeLayout(false); this.superTabControlPanel3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.integerInput1)).EndInit(); this.superTabControlPanel4.ResumeLayout(false); this.grpBoxTree.ResumeLayout(false); this.ResumeLayout(false); }
private RibbonBar CreateBrowserBar(TabGroup groupConfig) { var ribbonBar = new RibbonBar { Text = groupConfig.Name, HorizontalItemAlignment = eHorizontalItemsAlignment.Center, VerticalItemAlignment = eVerticalItemsAlignment.Middle, AutoOverflowEnabled = false }; foreach (BaseItem buttonItem in ribbonBarBrowsers.Items) ribbonBar.Items.Add((BaseItem)buttonItem.Clone()); return ribbonBar; }
/// <summary> /// Called when ShowKeyTips on RibbonBar contained by this Ribbon is set to true /// </summary> internal void OnRibbonBarShowKeyTips(RibbonBar bar) { if (!m_AltFocus) { m_AltFocus = true; } if (m_AltFocusedControl != bar.Parent && bar.Parent is RibbonPanel) { if (m_AltFocusedControl != null) m_AltFocusedControl.ShowKeyTips = false; m_AltFocusedControl = bar.Parent as IKeyTipsControl; if (m_AltFocusedControl != null) m_AltFocusedControl.ShowKeyTips = true; } }
private void DisposeOverflowButton() { if (m_OverflowButton == null) return; m_SuspendRecalcSize = true; if (OverflowButtonDestroy != null) OverflowButtonDestroy(this, new OverflowButtonEventArgs(m_OverflowButton)); m_OverflowButton.PopupOpen -= new DotNetBarManager.PopupOpenEventHandler(OverflowButton_PopupOpen); m_ItemContainer.SubItems.Remove(m_OverflowButton); m_ItemContainer.VerticalItemAlignment = m_OriginalVerticalItemAlign; m_ItemContainer.LayoutOrientation = m_OriginalLayoutOrientation; m_ItemContainer.HorizontalItemAlignment = m_OriginalHorizontalItemAlign; ArrayList items=new ArrayList(); m_OverflowRibbonBar.Items.CopyTo(items); m_OverflowRibbonBar.Items.Clear(); m_OverflowButton.SubItems.Clear(); IOwner owner = (IOwner)this; foreach (BaseItem item in items) { owner.RemoveShortcutsFromItem(item); m_ItemContainer.SubItems.Add(item); } if(m_OverflowButtonImage==null) { m_OverflowButton.Image.Dispose(); m_OverflowButton.Image=null; } m_OverflowButton.Dispose(); m_OverflowRibbonBar.Dispose(); m_OverflowButton = null; m_OverflowRibbonBar = null; m_SuspendRecalcSize = false; m_BeforeOverflowSize = Size.Empty; }
private void SetupOverflowButton() { if (m_OverflowButton != null || m_ItemContainer.SubItems.Count==0) return; m_SuspendRecalcSize = true; RibbonOverflowButtonItem overflowButton = new RibbonOverflowButtonItem(); overflowButton.Name = "sysOverflowButton"; overflowButton.Text = GetOverflowButtonText(); overflowButton.RibbonBar = this; overflowButton.Image = GetOverflowButtonImage(); overflowButton.ButtonStyle = eButtonStyle.ImageAndText; overflowButton.ImagePosition = eImagePosition.Top; overflowButton.AutoExpandOnClick = true; overflowButton.PopupType = ePopupType.Menu; overflowButton.ImagePaddingHorizontal = 16; overflowButton.VerticalPadding = 12; overflowButton.SubItemsExpandWidth = 14; overflowButton.HotTrackingStyle = eHotTrackingStyle.None; overflowButton.PopupOpen += new DotNetBarManager.PopupOpenEventHandler(OverflowButton_PopupOpen); if (OverflowButtonSetup != null) OverflowButtonSetup(this, new OverflowButtonEventArgs(overflowButton)); ArrayList items = new ArrayList(); m_ItemContainer.SubItems.CopyTo(items); m_ItemContainer.SubItems.Clear(); //ItemContainer cont = m_ItemContainer.Copy() as ItemContainer; //m_OverflowButton.SubItems.Add(cont); m_ItemContainer.SubItems.Add(overflowButton); m_OverflowRibbonBar = CreateOverflowRibbon(); m_OverflowRibbonBar.OverflowParent = this; m_OriginalVerticalItemAlign = m_ItemContainer.VerticalItemAlignment; m_OriginalLayoutOrientation = m_ItemContainer.LayoutOrientation; m_OriginalHorizontalItemAlign = m_ItemContainer.HorizontalItemAlignment; m_ItemContainer.VerticalItemAlignment = eVerticalItemsAlignment.Top; m_ItemContainer.LayoutOrientation = eOrientation.Horizontal; m_ItemContainer.HorizontalItemAlignment = eHorizontalItemsAlignment.Center; IOwner owner = (IOwner)this; foreach (BaseItem item in items) { m_OverflowRibbonBar.Items.Add(item); owner.AddShortcutsFromItem(item); } ItemContainer ic = new ItemContainer(); ic.Stretch = true; ControlContainerItem cont = new ControlContainerItem(); cont.AllowItemResize = false; ic.SubItems.Add(cont); cont.Control = m_OverflowRibbonBar; overflowButton.SubItems.Add(ic); m_ItemContainer.RefreshImageSize(); m_OverflowButton = overflowButton; if (OverflowButtonSetupComplete != null) OverflowButtonSetupComplete(this, new OverflowButtonEventArgs(m_OverflowButton)); m_SuspendRecalcSize = false; }
private void InitializeNavigationGuest() { //清空。 for (int i = this.ribbonControl.Items.Count - 1; i >= 0; i--) { var tabItem = this.ribbonControl.Items[i] as RibbonTabItem; if (tabItem != null) { this.ribbonControl.Items.RemoveAt(i); this.ribbonControl.Controls.Remove(tabItem.Panel); } } //根组。 DevComponents.DotNetBar.RibbonPanel ribbonPanel = new DevComponents.DotNetBar.RibbonPanel(); ribbonPanel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; ribbonPanel.Size = new System.Drawing.Size(908, 100); ribbonPanel.Dock = System.Windows.Forms.DockStyle.Fill; ribbonPanel.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); ribbonPanel.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonPanel.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonPanel.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; DevComponents.DotNetBar.RibbonTabItem ribbonTabItem = new DevComponents.DotNetBar.RibbonTabItem(); //ribbonTabItem.Checked = true; ribbonTabItem.Text = "相关连接"; ribbonTabItem.Tag = null; ribbonTabItem.Panel = ribbonPanel; //工作组 DevComponents.DotNetBar.RibbonBar ribbonBar = new DevComponents.DotNetBar.RibbonBar(); ribbonBar.Text = ribbonTabItem.Text; ribbonBar.Tag = null; ribbonBar.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; //模块 DevComponents.DotNetBar.ButtonItem buttonItem = new DevComponents.DotNetBar.ButtonItem(); buttonItem.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; buttonItem.Text = "登录"; buttonItem.Tag = typeof(LoginForm); buttonItem.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; buttonItem.Image = DrugShop.Res.Properties.Resources.buttonImage; buttonItem.Click += new EventHandler(buttonItem_Click); ribbonBar.Items.Add(buttonItem); buttonItem = new DevComponents.DotNetBar.ButtonItem(); buttonItem.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; buttonItem.Text = "关于"; buttonItem.Tag = typeof(AboutForm); buttonItem.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; buttonItem.Image = DrugShop.Res.Properties.Resources.buttonImage; buttonItem.Click += new EventHandler(buttonItem_Click); ribbonBar.Items.Add(buttonItem); ribbonPanel.Controls.Add(ribbonBar); this.ribbonControl.Controls.Add(ribbonPanel); this.ribbonControl.Items.Add(ribbonTabItem, 1); this.ribbonControl.SelectedRibbonTabItem = ribbonTabItem; }
//internal static void ApplyOffice2007ColorScheme(Ribbon.QatToolbar qat) //{ // Rendering.Office2007ColorTable ct = null; // Rendering.Office2007Renderer rn = Rendering.GlobalManager.Renderer as Rendering.Office2007Renderer; // if (rn != null) // ct = rn.ColorTable; // else // ct = new Rendering.Office2007ColorTable(); // Rendering.Office2007QuickAccessToolbarStateColorTable qatColors = ct.QuickAccessToolbar.Standalone; // qat.BackColor = Color.Transparent; // qat.BackgroundStyle.BackColor = qatColors.BottomBackground.Start; // qat.BackgroundStyle.BackColor2 = qatColors.BottomBackground.End; // qat.BackgroundStyle.BackColorGradientAngle = qatColors.BottomBackground.GradientAngle; // qat.BackgroundStyle.Border = eStyleBorderType.Etched; // qat.BackgroundStyle.BorderWidth = 1; // qat.BackgroundStyle.CornerType = eCornerType.Rounded; // qat.BackgroundStyle.CornerDiameter = 2; // qat.BackgroundStyle.BorderColor = qatColors.OutterBorderColor; // qat.BackgroundStyle.BorderColorLight = qatColors.InnerBorderColor; //} /// <summary> /// Applies specified visual style to the RibbonBar control. /// </summary> /// <param name="bar">RibbonBar control to set the style on.</param> /// <param name="style">Visual style to apply.</param> public static void SetRibbonBarStyle(RibbonBar bar, eDotNetBarStyle style) { bar.BackgroundStyle.Reset(); bar.BackgroundMouseOverStyle.Reset(); bar.TitleStyle.Reset(); bar.TitleStyleMouseOver.Reset(); bar.Style = style; bar.Invalidate(); }
internal static void ApplyRibbonBarElementStyle(ElementStyle backStyle, ElementStyle backMouseOverStyle, ElementStyle titleStyle, ElementStyle titleMouseOverStyle, RibbonBar b) { if (b.EffectiveStyle == eDotNetBarStyle.Office2007) { Rendering.Office2007ColorTable c = GetOffice2007ColorTable(b); ApplyRibbonBarOffice2007ElementStyle(backStyle, backMouseOverStyle, titleStyle, titleMouseOverStyle, c); } else if (b.EffectiveStyle == eDotNetBarStyle.Office2010) { Rendering.Office2007ColorTable c = GetOffice2007ColorTable(b); ApplyRibbonBarOffice2010ElementStyle(backStyle, backMouseOverStyle, titleStyle, titleMouseOverStyle, c); ; } else if (b.EffectiveStyle == eDotNetBarStyle.Metro) { Rendering.Office2007ColorTable c = GetOffice2007ColorTable(b); ApplyRibbonBarMetroElementStyle(backStyle, backMouseOverStyle, titleStyle, titleMouseOverStyle, c); ; } else if (b.EffectiveStyle == eDotNetBarStyle.Windows7) { Rendering.Office2007ColorTable c = GetOffice2007ColorTable(b); ApplyRibbonBarWindows7ElementStyle(backStyle, backMouseOverStyle, titleStyle, titleMouseOverStyle, c); ; } else { ApplyRibbonBarOffice2003ElementStyle(backStyle, backMouseOverStyle, titleStyle, titleMouseOverStyle); } }
internal static Rendering.Office2007ColorTable GetOffice2007ColorTable(RibbonBar b) { Rendering.Office2007ColorTable c = null; if ((b.RenderMode == eRenderMode.Custom || b.RenderMode == eRenderMode.Instance) && b.Renderer != null) { Rendering.Office2007Renderer rn = b.Renderer as Rendering.Office2007Renderer; if (rn != null) c = rn.ColorTable; } else { Rendering.Office2007Renderer rn = GlobalManager.Renderer as Rendering.Office2007Renderer; if (rn != null) c = rn.ColorTable; } if (c == null) c = new Office2007ColorTable(); return c; }
/// <summary> /// Applies Office 2007 Luna blue color scheme to the Ribbon Bar. /// </summary> /// <param name="b">Reference to object.</param> public static void ApplyOffice2007ColorScheme(RibbonBar b) { //Rendering.Office2007ColorTable c = GetOffice2007ColorTable(b); //ApplyRibbonBarOffice2007ElementStyle(b.BackgroundStyle, b.BackgroundMouseOverStyle, b.TitleStyle, b.TitleStyleMouseOver, c); b.Invalidate(); }
/// <summary> /// Creates new instance of the object and initializes it with default values. /// </summary> /// <param name="g">Reference to Graphics object.</param> /// <param name="bounds">Bounds of the part to be rendered.</param> /// <param name="ribbon">Reference to ribbon bar.</param> public RibbonBarRendererEventArgs(Graphics g, Rectangle bounds, RibbonBar ribbon) { this.Graphics = g; this.Bounds = bounds; this.RibbonBar = ribbon; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl(); this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar(); this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); this.itemContainer1 = new DevComponents.DotNetBar.ItemContainer(); this.buttonItem2 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem3 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem4 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem5 = new DevComponents.DotNetBar.ButtonItem(); this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); this.itemContainer2 = new DevComponents.DotNetBar.ItemContainer(); this.buttonItem6 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem7 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem9 = new DevComponents.DotNetBar.ButtonItem(); this.labelItem3 = new DevComponents.DotNetBar.LabelItem(); this.itemContainer3 = new DevComponents.DotNetBar.ItemContainer(); this.buttonItem10 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem11 = new DevComponents.DotNetBar.ButtonItem(); this.labelItem4 = new DevComponents.DotNetBar.LabelItem(); this.itemContainer4 = new DevComponents.DotNetBar.ItemContainer(); this.buttonItem12 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem13 = new DevComponents.DotNetBar.ButtonItem(); this.galleryContainer1 = new DevComponents.DotNetBar.GalleryContainer(); this.galleryGroupStock = new DevComponents.DotNetBar.GalleryGroup(); this.galleryGroupSurface = new DevComponents.DotNetBar.GalleryGroup(); this.galleryGroupDoughnut = new DevComponents.DotNetBar.GalleryGroup(); this.buttonItem14 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem15 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem16 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem17 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem18 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem19 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem20 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem21 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem22 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem23 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem24 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem25 = new DevComponents.DotNetBar.ButtonItem(); this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.label1 = new System.Windows.Forms.Label(); this.galleryGroupBubble = new DevComponents.DotNetBar.GalleryGroup(); this.ribbonControl1.SuspendLayout(); this.ribbonPanel1.SuspendLayout(); this.SuspendLayout(); // // ribbonControl1 // // // ribbonControl1.BackgroundStyle // this.ribbonControl1.BackgroundStyle.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(191)), ((System.Byte)(219)), ((System.Byte)(255))); this.ribbonControl1.Controls.AddRange(new System.Windows.Forms.Control[] { this.ribbonPanel1 }); this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; this.ribbonControl1.DockPadding.Bottom = 2; this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.ribbonTabItem1 }); this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F); this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Size = new System.Drawing.Size(464, 120); this.ribbonControl1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.ribbonControl1.TabGroupHeight = 14; this.ribbonControl1.TabIndex = 0; // // ribbonPanel1 // this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.ribbonPanel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.ribbonBar1 }); this.ribbonPanel1.DefaultLayout = true; this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.ribbonPanel1.DockPadding.Bottom = 3; this.ribbonPanel1.DockPadding.Left = 3; this.ribbonPanel1.DockPadding.Right = 3; this.ribbonPanel1.Location = new System.Drawing.Point(0, 25); this.ribbonPanel1.Name = "ribbonPanel1"; this.ribbonPanel1.Size = new System.Drawing.Size(464, 93); // // ribbonPanel1.Style // this.ribbonPanel1.Style.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(232)), ((System.Byte)(245))); this.ribbonPanel1.Style.BackColorBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] { new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(232)), ((System.Byte)(245))), 0F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(209)), ((System.Byte)(223)), ((System.Byte)(240))), 15F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(216)), ((System.Byte)(237))), 15F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(231)), ((System.Byte)(242)), ((System.Byte)(255))), 1F) }); this.ribbonPanel1.Style.BackColorGradientAngle = 90; this.ribbonPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Double; this.ribbonPanel1.Style.BorderBottomWidth = 1; this.ribbonPanel1.Style.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(141)), ((System.Byte)(178)), ((System.Byte)(227))); this.ribbonPanel1.Style.BorderColor2 = System.Drawing.Color.FromArgb(((System.Byte)(136)), ((System.Byte)(161)), ((System.Byte)(194))); this.ribbonPanel1.Style.BorderColorLight = System.Drawing.Color.FromArgb(((System.Byte)(231)), ((System.Byte)(239)), ((System.Byte)(248))); this.ribbonPanel1.Style.BorderColorLight2 = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(249)), ((System.Byte)(255))); this.ribbonPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Double; this.ribbonPanel1.Style.BorderLeftWidth = 1; this.ribbonPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Double; this.ribbonPanel1.Style.BorderRightWidth = 1; this.ribbonPanel1.Style.BorderTopWidth = 1; this.ribbonPanel1.Style.CornerDiameter = 3; this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.ribbonPanel1.Style.CornerTypeTopLeft = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel1.Style.CornerTypeTopRight = DevComponents.DotNetBar.eCornerType.Square; this.ribbonPanel1.TabIndex = 1; // // ribbonBar1 // this.ribbonBar1.AutoOverflowEnabled = true; this.ribbonBar1.BackColor = System.Drawing.Color.Transparent; // // ribbonBar1.BackgroundMouseOverStyle // this.ribbonBar1.BackgroundMouseOverStyle.BackColorBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] { new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(241)), ((System.Byte)(255))), 0F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(233)), ((System.Byte)(241)), ((System.Byte)(253))), 15F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(236)), ((System.Byte)(253))), 15F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(234)), ((System.Byte)(250))), 1F) }); this.ribbonBar1.BackgroundMouseOverStyle.BackColorGradientAngle = 90; this.ribbonBar1.BackgroundMouseOverStyle.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(173)), ((System.Byte)(199)), ((System.Byte)(224))); this.ribbonBar1.BackgroundMouseOverStyle.BorderColor2 = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(173)), ((System.Byte)(211))); this.ribbonBar1.BackgroundMouseOverStyle.BorderColorLight = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // ribbonBar1.BackgroundStyle // this.ribbonBar1.BackgroundStyle.BackColorBlend.AddRange(new DevComponents.DotNetBar.BackgroundColorBlend[] { new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(232)), ((System.Byte)(245))), 0F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(209)), ((System.Byte)(223)), ((System.Byte)(240))), 15F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(216)), ((System.Byte)(237))), 15F), new DevComponents.DotNetBar.BackgroundColorBlend(System.Drawing.Color.FromArgb(((System.Byte)(231)), ((System.Byte)(242)), ((System.Byte)(255))), 1F) }); this.ribbonBar1.BackgroundStyle.BackColorGradientAngle = 90; this.ribbonBar1.BackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Etched; this.ribbonBar1.BackgroundStyle.BorderBottomWidth = 1; this.ribbonBar1.BackgroundStyle.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(210)), ((System.Byte)(223))); this.ribbonBar1.BackgroundStyle.BorderColor2 = System.Drawing.Color.FromArgb(((System.Byte)(159)), ((System.Byte)(193)), ((System.Byte)(219))); this.ribbonBar1.BackgroundStyle.BorderColorLight = System.Drawing.Color.FromArgb(((System.Byte)(239)), ((System.Byte)(244)), ((System.Byte)(250))); this.ribbonBar1.BackgroundStyle.BorderColorLight2 = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(249)), ((System.Byte)(255))); this.ribbonBar1.BackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Etched; this.ribbonBar1.BackgroundStyle.BorderLeftWidth = 1; this.ribbonBar1.BackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Etched; this.ribbonBar1.BackgroundStyle.BorderRightWidth = 1; this.ribbonBar1.BackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Etched; this.ribbonBar1.BackgroundStyle.BorderTopWidth = 1; this.ribbonBar1.BackgroundStyle.CornerDiameter = 3; this.ribbonBar1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem1, this.galleryContainer1 }); this.ribbonBar1.Location = new System.Drawing.Point(4, 0); this.ribbonBar1.Name = "ribbonBar1"; this.ribbonBar1.Size = new System.Drawing.Size(308, 88); this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007; this.ribbonBar1.TabIndex = 1; this.ribbonBar1.Text = "Drop-Down Galleries"; // // ribbonBar1.TitleStyle // this.ribbonBar1.TitleStyle.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(194)), ((System.Byte)(217)), ((System.Byte)(241))); this.ribbonBar1.TitleStyle.BackColor2 = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(217)), ((System.Byte)(240))); this.ribbonBar1.TitleStyle.BackColorGradientAngle = 90; this.ribbonBar1.TitleStyle.PaddingBottom = 1; this.ribbonBar1.TitleStyle.PaddingTop = 1; this.ribbonBar1.TitleStyle.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; this.ribbonBar1.TitleStyle.TextColor = System.Drawing.Color.FromArgb(((System.Byte)(62)), ((System.Byte)(106)), ((System.Byte)(170))); // // ribbonBar1.TitleStyleMouseOver // this.ribbonBar1.TitleStyleMouseOver.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(200)), ((System.Byte)(224)), ((System.Byte)(255))); this.ribbonBar1.TitleStyleMouseOver.BackColor2 = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(237)), ((System.Byte)(255))); this.ribbonBar1.TitleStyleMouseOver.BackColorGradientAngle = 90; this.ribbonBar1.TitleStyleMouseOver.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center; this.ribbonBar1.TitleStyleMouseOver.TextColor = System.Drawing.Color.FromArgb(((System.Byte)(62)), ((System.Byte)(106)), ((System.Byte)(170))); this.ribbonBar1.MouseEnter += new System.EventHandler(this.ribbonBar1_MouseEnter); this.ribbonBar1.MouseLeave += new System.EventHandler(this.ribbonBar1_MouseLeave); // // buttonItem1 // this.buttonItem1.AutoExpandOnClick = true; this.buttonItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; this.buttonItem1.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem1.Image"))); this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; this.buttonItem1.Name = "buttonItem1"; this.buttonItem1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.labelItem1, this.itemContainer1, this.labelItem2, this.itemContainer2, this.labelItem3, this.itemContainer3, this.labelItem4, this.itemContainer4 }); this.buttonItem1.Text = "Chart"; // // labelItem1 // this.labelItem1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(228)), ((System.Byte)(236))); this.labelItem1.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem1.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; this.labelItem1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(15)), ((System.Byte)(99))); this.labelItem1.Name = "labelItem1"; this.labelItem1.PaddingBottom = 1; this.labelItem1.PaddingTop = 1; this.labelItem1.SingleLineColor = System.Drawing.Color.DarkGray; this.labelItem1.Text = "Stock"; // // itemContainer1 // this.itemContainer1.MinimumSize = new System.Drawing.Size(0, 0); this.itemContainer1.Name = "itemContainer1"; this.itemContainer1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem2, this.buttonItem3, this.buttonItem4, this.buttonItem5 }); // // buttonItem2 // this.buttonItem2.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem2.Image"))); this.buttonItem2.Name = "buttonItem2"; this.buttonItem2.Text = "Stock-Line"; // // buttonItem3 // this.buttonItem3.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem3.Image"))); this.buttonItem3.Name = "buttonItem3"; this.buttonItem3.Text = "Stock Line 2"; // // buttonItem4 // this.buttonItem4.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem4.Image"))); this.buttonItem4.Name = "buttonItem4"; this.buttonItem4.Text = "Stock Line 3"; // // buttonItem5 // this.buttonItem5.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem5.Image"))); this.buttonItem5.Name = "buttonItem5"; this.buttonItem5.Text = "Stock Line 4"; // // labelItem2 // this.labelItem2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(228)), ((System.Byte)(236))); this.labelItem2.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem2.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; this.labelItem2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(15)), ((System.Byte)(99))); this.labelItem2.Name = "labelItem2"; this.labelItem2.PaddingBottom = 1; this.labelItem2.PaddingTop = 1; this.labelItem2.SingleLineColor = System.Drawing.Color.DarkGray; this.labelItem2.Text = "Surface"; // // itemContainer2 // this.itemContainer2.MinimumSize = new System.Drawing.Size(0, 0); this.itemContainer2.Name = "itemContainer2"; this.itemContainer2.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem6, this.buttonItem7, this.buttonItem8, this.buttonItem9 }); // // buttonItem6 // this.buttonItem6.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem6.Image"))); this.buttonItem6.Name = "buttonItem6"; this.buttonItem6.Text = "Surface Graph 1"; // // buttonItem7 // this.buttonItem7.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem7.Image"))); this.buttonItem7.Name = "buttonItem7"; this.buttonItem7.Text = "Surface Graph 2"; // // buttonItem8 // this.buttonItem8.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem8.Image"))); this.buttonItem8.Name = "buttonItem8"; this.buttonItem8.Text = "Surface Graph 3"; // // buttonItem9 // this.buttonItem9.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem9.Image"))); this.buttonItem9.Name = "buttonItem9"; this.buttonItem9.Text = "Surface Graph 4"; // // labelItem3 // this.labelItem3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(228)), ((System.Byte)(236))); this.labelItem3.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem3.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; this.labelItem3.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(15)), ((System.Byte)(99))); this.labelItem3.Name = "labelItem3"; this.labelItem3.PaddingBottom = 1; this.labelItem3.PaddingTop = 1; this.labelItem3.SingleLineColor = System.Drawing.Color.DarkGray; this.labelItem3.Text = "Doughnut"; // // itemContainer3 // this.itemContainer3.MinimumSize = new System.Drawing.Size(0, 0); this.itemContainer3.Name = "itemContainer3"; this.itemContainer3.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem10, this.buttonItem11 }); // // buttonItem10 // this.buttonItem10.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem10.Image"))); this.buttonItem10.Name = "buttonItem10"; this.buttonItem10.Text = "Doughnut Graph 1"; // // buttonItem11 // this.buttonItem11.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem11.Image"))); this.buttonItem11.Name = "buttonItem11"; this.buttonItem11.Text = "Doughnut Graph 2"; // // labelItem4 // this.labelItem4.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(228)), ((System.Byte)(236))); this.labelItem4.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; this.labelItem4.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; this.labelItem4.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(15)), ((System.Byte)(99))); this.labelItem4.Name = "labelItem4"; this.labelItem4.PaddingBottom = 1; this.labelItem4.PaddingTop = 1; this.labelItem4.SingleLineColor = System.Drawing.Color.DarkGray; this.labelItem4.Text = "Bubble"; // // itemContainer4 // this.itemContainer4.MinimumSize = new System.Drawing.Size(0, 0); this.itemContainer4.Name = "itemContainer4"; this.itemContainer4.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem12, this.buttonItem13 }); // // buttonItem12 // this.buttonItem12.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem12.Image"))); this.buttonItem12.Name = "buttonItem12"; this.buttonItem12.Text = "Bubble Graph 1"; // // buttonItem13 // this.buttonItem13.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem13.Image"))); this.buttonItem13.Name = "buttonItem13"; this.buttonItem13.Text = "Bubble Graph 2"; // // galleryContainer1 // // // galleryContainer1.BackgroundStyle // this.galleryContainer1.BackgroundStyle.Class = "RibbonGalleryContainer"; this.galleryContainer1.GalleryGroups.AddRange(new DevComponents.DotNetBar.GalleryGroup[] { this.galleryGroupStock, this.galleryGroupSurface, this.galleryGroupDoughnut, this.galleryGroupBubble }); this.galleryContainer1.MinimumSize = new System.Drawing.Size(58, 58); this.galleryContainer1.Name = "galleryContainer1"; this.galleryContainer1.StretchGallery = true; this.galleryContainer1.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.buttonItem14, this.buttonItem15, this.buttonItem16, this.buttonItem17, this.buttonItem18, this.buttonItem19, this.buttonItem20, this.buttonItem21, this.buttonItem22, this.buttonItem23, this.buttonItem24, this.buttonItem25 }); // // galleryGroupStock // this.galleryGroupStock.Name = "galleryGroupStock"; this.galleryGroupStock.Text = "<b>Stock</b>"; // // galleryGroupSurface // this.galleryGroupSurface.DisplayOrder = 1; this.galleryGroupSurface.Name = "galleryGroupSurface"; this.galleryGroupSurface.Text = "<b>Surface</b>"; // // galleryGroupDoughnut // this.galleryGroupDoughnut.DisplayOrder = 2; this.galleryGroupDoughnut.Name = "galleryGroupDoughnut"; this.galleryGroupDoughnut.Text = "<b>Doughnut</b>"; // // buttonItem14 // this.galleryContainer1.SetGalleryGroup(this.buttonItem14, this.galleryGroupStock); this.buttonItem14.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem14.Image"))); this.buttonItem14.Name = "buttonItem14"; this.buttonItem14.Text = "buttonItem14"; // // buttonItem15 // this.galleryContainer1.SetGalleryGroup(this.buttonItem15, this.galleryGroupStock); this.buttonItem15.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem15.Image"))); this.buttonItem15.Name = "buttonItem15"; this.buttonItem15.Text = "buttonItem15"; // // buttonItem16 // this.galleryContainer1.SetGalleryGroup(this.buttonItem16, this.galleryGroupStock); this.buttonItem16.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem16.Image"))); this.buttonItem16.Name = "buttonItem16"; this.buttonItem16.Text = "buttonItem16"; // // buttonItem17 // this.galleryContainer1.SetGalleryGroup(this.buttonItem17, this.galleryGroupStock); this.buttonItem17.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem17.Image"))); this.buttonItem17.Name = "buttonItem17"; this.buttonItem17.Text = "buttonItem17"; // // buttonItem18 // this.galleryContainer1.SetGalleryGroup(this.buttonItem18, this.galleryGroupSurface); this.buttonItem18.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem18.Image"))); this.buttonItem18.Name = "buttonItem18"; this.buttonItem18.Text = "buttonItem18"; // // buttonItem19 // this.galleryContainer1.SetGalleryGroup(this.buttonItem19, this.galleryGroupSurface); this.buttonItem19.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem19.Image"))); this.buttonItem19.Name = "buttonItem19"; this.buttonItem19.Text = "buttonItem19"; // // buttonItem20 // this.galleryContainer1.SetGalleryGroup(this.buttonItem20, this.galleryGroupSurface); this.buttonItem20.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem20.Image"))); this.buttonItem20.Name = "buttonItem20"; this.buttonItem20.Text = "buttonItem20"; // // buttonItem21 // this.galleryContainer1.SetGalleryGroup(this.buttonItem21, this.galleryGroupSurface); this.buttonItem21.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem21.Image"))); this.buttonItem21.Name = "buttonItem21"; this.buttonItem21.Text = "buttonItem21"; // // buttonItem22 // this.galleryContainer1.SetGalleryGroup(this.buttonItem22, this.galleryGroupDoughnut); this.buttonItem22.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem22.Image"))); this.buttonItem22.Name = "buttonItem22"; this.buttonItem22.Text = "buttonItem22"; // // buttonItem23 // this.galleryContainer1.SetGalleryGroup(this.buttonItem23, this.galleryGroupDoughnut); this.buttonItem23.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem23.Image"))); this.buttonItem23.Name = "buttonItem23"; this.buttonItem23.Text = "buttonItem23"; // // buttonItem24 // this.galleryContainer1.SetGalleryGroup(this.buttonItem24, this.galleryGroupBubble); this.buttonItem24.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem24.Image"))); this.buttonItem24.Name = "buttonItem24"; this.buttonItem24.Text = "buttonItem24"; // // buttonItem25 // this.galleryContainer1.SetGalleryGroup(this.buttonItem25, this.galleryGroupBubble); this.buttonItem25.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem25.Image"))); this.buttonItem25.Name = "buttonItem25"; this.buttonItem25.Text = "buttonItem25"; // // ribbonTabItem1 // this.ribbonTabItem1.Checked = true; this.ribbonTabItem1.Name = "ribbonTabItem1"; this.ribbonTabItem1.Panel = this.ribbonPanel1; this.ribbonTabItem1.Text = "Insert"; // // pictureBox1 // this.pictureBox1.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); this.pictureBox1.BackColor = System.Drawing.Color.White; this.pictureBox1.Location = new System.Drawing.Point(272, 152); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(176, 152); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBox1.TabIndex = 1; this.pictureBox1.TabStop = false; // // label1 // this.label1.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right); this.label1.Location = new System.Drawing.Point(272, 128); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(96, 16); this.label1.TabIndex = 2; this.label1.Text = "Preview"; // // galleryGroupBubble // this.galleryGroupBubble.DisplayOrder = 3; this.galleryGroupBubble.Name = "galleryGroupBubble"; this.galleryGroupBubble.Text = "<b>Bubble</b>"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(464, 318); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label1, this.pictureBox1, this.ribbonControl1 }); this.Name = "Form1"; this.Text = "Form1"; this.ribbonControl1.ResumeLayout(false); this.ribbonPanel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Apply Office 2003 color scheme to background and title. /// </summary> /// <param name="b">Reference to object</param> public static void ApplyOffice2003ColorScheme(RibbonBar b) { b.Invalidate(); }
/// <summary> /// 初始导航。 /// </summary> void InitializeNavigationPublic() { //清空。 for (int i = this.ribbonControl.Items.Count - 1; i >= 0; i--) { var tabItem = this.ribbonControl.Items[i] as RibbonTabItem; if (tabItem != null) { this.ribbonControl.Items.RemoveAt(i); this.ribbonControl.Controls.Remove(tabItem.Panel); } } //初始化导航 int mask = (int)GroupType.Windows; IList <INavigateGroup> rootGroups = navigationProxy.GetGroupList(Guid.Empty.ToString().ToUpper()); int index = 0; foreach (var vGroup in rootGroups) //根分组。 { if ((vGroup.Attributes & mask) == mask) { #region 一级组/RibbonTabItem DevComponents.DotNetBar.RibbonPanel ribbonPanel = new DevComponents.DotNetBar.RibbonPanel(); ribbonPanel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; ribbonPanel.Size = new System.Drawing.Size(908, 100); ribbonPanel.Dock = System.Windows.Forms.DockStyle.Fill; ribbonPanel.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); ribbonPanel.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonPanel.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; ribbonPanel.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; DevComponents.DotNetBar.RibbonTabItem ribbonTabItem = new DevComponents.DotNetBar.RibbonTabItem(); //ribbonTabItem.Checked = true; ribbonTabItem.Text = vGroup.Name; ribbonTabItem.Tag = vGroup; ribbonTabItem.Panel = ribbonPanel; //二级组 IList <INavigateGroup> groups = navigationProxy.GetGroupList(vGroup.ID); if (groups.Count == 0) { groups.Add(vGroup); } //工作组。 foreach (var xGroup in groups) { #region 工作组/RibbonBar DevComponents.DotNetBar.RibbonBar ribbonBar = new DevComponents.DotNetBar.RibbonBar(); ribbonBar.Text = xGroup.Name; ribbonBar.Tag = xGroup; ribbonBar.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; var modules = navigationProxy.GetAllModuleList(xGroup.ID); foreach (var module in modules) { DevComponents.DotNetBar.ButtonItem buttonItem = new DevComponents.DotNetBar.ButtonItem(); buttonItem.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; buttonItem.Text = module.Name; buttonItem.Tag = module; buttonItem.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; Image image = this.GetModuleImage(module.Icon); if (image == null) { image = DrugShop.Res.Properties.Resources.buttonImage; } buttonItem.Image = image; buttonItem.Click += new EventHandler(buttonItem_Click); ribbonBar.Items.Add(buttonItem); } ribbonPanel.Controls.Add(ribbonBar); #endregion } this.ribbonControl.Controls.Add(ribbonPanel); this.ribbonControl.Items.Add(ribbonTabItem, 1 + index); #endregion } } if (rootGroups.Count > 0) { this.ribbonControl.SelectedRibbonTabItem = this.ribbonControl.Items[1] as RibbonTabItem; } }
public static DialogLauncherPainter CreateRibbonBarPainter(RibbonBar ribbon) { if (BarFunctions.IsOffice2007Style(ribbon.EffectiveStyle)) return m_Office2007RibbonBarPainter; return null; }
internal RibbonBar CreateOverflowRibbon(bool createHandle) { RibbonBar bar = new RibbonBar(); bar.ShortcutsEnabled = false; bar.AutoOverflowEnabled = false; bar.Style = this.Style; bar.BackgroundStyle.ApplyStyle(this.BackgroundStyle); bar.BackgroundMouseOverStyle.ApplyStyle(this.BackgroundMouseOverStyle); bar.Text = this.Text; bar.TitleStyle.ApplyStyle(this.TitleStyle); bar.TitleStyleMouseOver.ApplyStyle(this.TitleStyleMouseOver); bar.LayoutOrientation = this.LayoutOrientation; CopyIOwnerEvents(bar); bar.DialogLauncherVisible = this.DialogLauncherVisible; bar.DialogLauncherMouseDown = this.DialogLauncherMouseDown; bar.DialogLauncherMouseEnter = this.DialogLauncherMouseEnter; bar.DialogLauncherMouseHover = this.DialogLauncherMouseHover; bar.DialogLauncherMouseLeave = this.DialogLauncherMouseLeave; bar.DialogLauncherButton = this.DialogLauncherButton; bar.DialogLauncherMouseOverButton = this.DialogLauncherMouseOverButton; bar.Images = this.Images; bar.ImagesLarge = this.ImagesLarge; bar.ImagesMedium = this.ImagesMedium; bar.FadeEffect = this.FadeEffect; bar.LaunchDialog = this.LaunchDialog; bar.ItemSpacing= this.ItemSpacing; bar.HorizontalItemAlignment = this.HorizontalItemAlignment; bar.IsOverflowRibbon = true; bar.AutoSizeItems = this.AutoSizeItems; #if!TRIAL bar.LicenseKey = this.LicenseKey; #endif bar.MaximumOverflowTextLength = this.MaximumOverflowTextLength; bar.VerticalItemAlignment = this.VerticalItemAlignment; //bar.AutoSize = true; if (createHandle && !BarFunctions.IsHandleValid(this)) { this.CreateHandle(); this.RecalcLayout(); } if (!m_BeforeOverflowSize.IsEmpty) { Size barSize = m_BeforeOverflowSize; bar.Size = barSize; } else bar.Size = GetFullContentBasedSize(); bar.TitleVisible = this.TitleVisible; bar.Visible = true; return bar; }
/// <summary> /// 创建UI层的菜单栏 使用ribbonControl实现菜单栏的功能 /// </summary> /// <param name="Menus"></param> private void CreateMenus(Dictionary<string, MyPluginEngine.IMenuDef> Menus) { //遍历Menu集合中的元素 foreach (KeyValuePair<string, MyPluginEngine.IMenuDef> menu in Menus) { MyPluginEngine.IMenuDef nbMenu = menu.Value; //新建菜单对象 //ToolStripMenuItem UIMenu = new ToolStripMenuItem(); RibbonTabItem UIMenu = new RibbonTabItem(); //设置菜单属性 UIMenu.Text = nbMenu.Caption; UIMenu.Tag = nbMenu; UIMenu.AccessibleName = nbMenu.ToString(); //添加ribbonpanel RibbonPanel MenuPanel = new RibbonPanel(); MenuPanel.Text = nbMenu.Caption; MenuPanel.Dock = DockStyle.Fill; UIMenu.Panel = MenuPanel; // 添加 ribbonbar RibbonBar MenuBar = new RibbonBar(); //MenuBar.Text = nbMenu.Caption;//分组标题 //MenuBar.Dock = DockStyle.Fill; //将Menu添加MainMenu的Commands中 //MainMenu.Items.Add(UIMenu); //将Command和Tool插入到menu中 //遍历每一个菜单item MyPluginEngine.ItemDef itemDef = new MyPluginEngine.ItemDef(); for (int i = 0; i < nbMenu.ItemCount; i++) { //寻找该菜单对象的信息,如该菜单上的Item数量,是否为Group nbMenu.GetItemInfo(i, itemDef); MyPluginEngine.ITool nbtool = m_DicPlugins[itemDef.ID] as MyPluginEngine.ITool; if (nbtool != null) { //产生一个ITool对象 //ToolStripMenuItem UITool = new ToolStripMenuItem(); // ButtonItem UITool = new ButtonItem(); //根据ITool的信息设置UITool的属性 //UITool.ToolTipText = nbtool.Tooltip; UITool.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; UITool.Text = nbtool.Caption; UITool.Image = nbtool.Bitmap; UITool.AccessibleName = nbtool.ToString(); //UITool.Key = nbtool.ToString(); UITool.Enabled = nbtool.Enabled; UITool.Checked = nbtool.Checked; //产生UICommand是调用OnCreate方法,将主框架对象传递给插件对象 nbtool.OnCreate(this._App); //使用委托机制处理Command的事件 //所有的UICommand对象Click事件均使用this.UITool_Click方法处理 UITool.Click += new EventHandler(UITool_Click); //将生成的UICommand添加到CommandManager中 MenuBar.Text = nbtool.Category; if (itemDef.Group) { MenuBar = new RibbonBar(); MenuBar.Text = nbtool.Category;//分组标题 //UIMenu.DropDownItems.Add(new ToolStripSeparator()); } MenuBar.Items.Add(UITool); //UIMenu.SubItems.Add(UITool); } MyPluginEngine.ICommand nbcmd = m_DicPlugins[itemDef.ID] as MyPluginEngine.ICommand; if (nbcmd != null) { //产生一个UICommand对象 //ToolStripMenuItem UICommand = new ToolStripMenuItem(); // ButtonItem UICommand = new ButtonItem(); UICommand.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; //根据ICommand的信息设置UICommand的属性 //UICommand.ToolTipText = nbcmd.Tooltip; UICommand.Text = nbcmd.Caption; UICommand.Image = nbcmd.Bitmap; UICommand.AccessibleName = nbcmd.ToString(); UICommand.Enabled = nbcmd.Enabled; //UICommand的Checked与command的属性一致 UICommand.Checked = nbcmd.Checked; //产生UICommand是调用OnCreate方法,将主框架对象传递给插件对象 nbcmd.OnCreate(this._App); //使用委托机制处理Command的事件 //所有的UICommand对象Click事件均使用this.Command_Click方法处理 UICommand.Click += new EventHandler(UICommand_Click); //将生成的UICommand添加到CommandManager中 //如果分组,则在该UI对象前加上一个分隔符 if (itemDef.Group) { //UIMenu.DropDownItems.Add(new ToolStripSeparator()); MenuBar = new RibbonBar(); MenuBar.Text = UICommand.Category; } //UIMenu.DropDownItems.Add(UICommand); MenuBar.Items.Add(UICommand); } MenuPanel.Controls.Add(MenuBar); } this.MainMenu.Controls.Add(MenuPanel); this.MainMenu.Items.Add(UIMenu); } }
protected override void Dispose(bool disposing) { DestroyMouseOverTimer(); if (m_OverflowRibbonBar != null) { m_OverflowRibbonBar.Dispose(); m_OverflowRibbonBar = null; } if (BarUtilities.DisposeItemImages && !this.DesignMode) { BarUtilities.DisposeImage(ref m_DialogLauncherButton); BarUtilities.DisposeImage(ref m_OverflowButtonImage); BarUtilities.DisposeImage(ref m_DialogLauncherMouseOverButton); } base.Dispose(disposing); }
/// <summary> /// 创建ToolBar的UI层对象 /// </summary> /// <param name="toolBars"></param> private void CreateToolBars(Dictionary<string, MyPluginEngine.IToolBarDef> toolBars) { foreach (KeyValuePair<string, MyPluginEngine.IToolBarDef> toolbar in toolBars) { MyPluginEngine.IToolBarDef nbtoolbar = toolbar.Value; //产生UICommandBar对象 //ToolStrip UIToolbar = new ToolStrip(); RibbonPanel UIToolPanel = new RibbonPanel(); //设置UICommandBar的属性 //UIToolbar.CommandManager = this.uiCommandManager; UIToolPanel.Name = nbtoolbar.Name; //UIToolPanel.Text = nbtoolbar.Caption; UIToolPanel.Tag = nbtoolbar; UIToolPanel.AccessibleName = nbtoolbar.ToString(); UIToolPanel.Dock = DockStyle.Fill; RibbonBar UIToolBar = new RibbonBar(); //UIToolBar.Text = nbtoolbar.Caption; //将Command和Tool插入到ToolBar中 MyPluginEngine.ItemDef itemDef = new ItemDef(); for (int i = 0; i < nbtoolbar.ItemCount; i++) { nbtoolbar.GetItemInfo(i, itemDef); MyPluginEngine.ICommand nbcmd = m_DicPlugins[itemDef.ID] as MyPluginEngine.ICommand; if (nbcmd != null) { //产生一个UICommand对象 //ToolStripButton UICommand = new ToolStripButton(); ButtonItem UICommand = new ButtonItem(); //UICommand.sty = ; //根据ICommand的信息设置UICommand的属性 //UICommand.ToolTipText = nbcmd.Tooltip; UICommand.Text = nbcmd.Caption; UICommand.Image = nbcmd.Bitmap; UICommand.AccessibleName = nbcmd.ToString(); UICommand.Enabled = nbcmd.Enabled; //UICommand的Checked与command的属性一致 UICommand.Checked = nbcmd.Checked; //产生UICommand是调用OnCreate方法,将主框架对象传递给插件对象 nbcmd.OnCreate(this._App); //使用委托机制处理Command的事件 //所有的UICommand对象Click事件均使用this.Command_Click方法处理 UICommand.Click += new EventHandler(UICommand_Click); //将生成的UICommand添加到CommandManager中 //如果分组,则在该UI对象前加上一个分隔符 if (itemDef.Group) { UIToolBar = new RibbonBar(); //UIToolBar.Text = nbtoolbar.Caption; } UIToolBar.Items.Add(UICommand); } //获得一个ITool对象 MyPluginEngine.ITool nbtool = m_DicPlugins[itemDef.ID] as MyPluginEngine.ITool; if (nbtool != null) { //产生一个ITool对象 //ToolStripButton UITool = new ToolStripButton(); ButtonItem UITool = new ButtonItem(); //UITool.DisplayStyle = ToolStripItemDisplayStyle.Image; //根据ITool的信息设置UITool的属性 //UITool.ToolTipText = nbtool.Tooltip; UITool.Text = nbtool.Caption; UITool.Image = nbtool.Bitmap; UITool.AccessibleName = nbtool.ToString(); //UITool.Key = nbtool.ToString(); UITool.Enabled = nbtool.Enabled; UITool.Checked = nbtool.Checked; //产生UICommand是调用OnCreate方法,将主框架对象传递给插件对象 nbtool.OnCreate(this._App); //使用委托机制处理Command的事件 //所有的UICommand对象Click事件均使用this.UITool_Click方法处理 UITool.Click += new EventHandler(UITool_Click); //将生成的UICommand添加到CommandManager中 if (itemDef.Group) { //UIToolbar.Items.Add(new ToolStripSeparator()); UIToolBar = new RibbonBar(); //UIToolBar.Text = nbtoolbar.Caption; //UIToolBar.Items.Add(); } UIToolBar.Items.Add(UITool); } UIToolPanel.Controls.Add(UIToolBar); } this.MainTool.Controls.Add(UIToolPanel); } }
public DialogLauncherAccessibleObject(RibbonBar owner) { m_Owner = owner; m_Owner.DialogLauncherMouseEnter += new EventHandler(OnMouseEnter); m_Owner.DialogLauncherMouseLeave += new EventHandler(OnMouseLeave); }
/// <summary> /// Called when right-mouse button is pressed over RibbonBar /// </summary> /// <param name="ribbonBar">Reference to RibbonBar object.</param> internal void OnRibbonBarRightClick(RibbonBar ribbonBar, int x, int y) { if (!DisplayCustomizeContextMenu) return; if (ribbonBar.CanCustomize && (ribbonBar.TitleRectangle.Contains(x, y) || ribbonBar.OverflowState)) { ShowCustomizeContextMenu(ribbonBar, false); } else { BaseItem item = ribbonBar.HitTest(x, y); if (item != null && item.CanCustomize && !item.SystemItem) { ShowCustomizeContextMenu(item, false); } } }
public void showSysMenu() { int ritemCount = ribbonControl1.Items.Count - 1; for (int i = 0; i < ritemCount; i++) { ribbonControl1.Items.Remove(0); } for (int i = 0; i < modules.Count; i++) { #region 循环插入模块 DevComponents.DotNetBar.RibbonTabItem ribbonTabItemModule = new RibbonTabItem(); DevComponents.DotNetBar.RibbonPanel rPanel = new RibbonPanel(); ribbonTabItemModule.Panel = rPanel; //this.ribbonControl1.SuspendLayout(); rPanel.SuspendLayout(); rPanel.Dock = DockStyle.Fill; rPanel.Name = "panel" + modules[i].ModuleId.ToString(); rPanel.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; rPanel.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; rPanel.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; rPanel.Location = new Point(0, 0x3a); rPanel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); rPanel.Padding = new System.Windows.Forms.Padding(3, 0, 3, 4); rPanel.Size = new Size(0x47a, 0x73); //ribbonTabItemModule.Checked = true; //ribbonTabItemModule.ItemAlignment = eItemAlignment.Near; ribbonTabItemModule.Name = "module" + modules[i].ModuleId.ToString(); ribbonTabItemModule.Text = modules[i].Name; ribbonTabItemModule.Tag = modules[i]; DevComponents.DotNetBar.RibbonBar rMenuClass = null; #region 增加子菜单 List<BaseMenu> _menus = menus.FindAll(x => (x.ModuleId == modules[i].ModuleId && x.PMenuId == -1)).OrderByDescending(x => x.SortId).ToList(); if (_menus.Count > 0) { //List<RibbonBar> listbar = new List<RibbonBar>(); for (int j = 0; j < _menus.Count; j++) { if (string.IsNullOrEmpty(_menus[j].DllName) && string.IsNullOrEmpty(_menus[j].UrlId)) { //为二级分类菜单 DevComponents.DotNetBar.RibbonBar menuClass = new RibbonBar(); menuClass.AutoOverflowEnabled = true; menuClass.Dock = System.Windows.Forms.DockStyle.Left; menuClass.ContainerControlProcessDialogKey = true; menuClass.Text = _menus[j].Name; //三级菜单 List<BaseMenu> mainMenu = menus.FindAll(x => x.PMenuId == _menus[j].MenuId).OrderByDescending(x => x.SortId).ToList(); foreach (BaseMenu menu in mainMenu) { DevComponents.DotNetBar.ButtonItem btnmenu = new ButtonItem(menu.MenuId.ToString(), menu.Name); // btnmenu.Image = global::EFWBaseLib.Properties.Resources.defaulttool; if (!string.IsNullOrEmpty(menu.Image)) { btnmenu.Image = new Bitmap(Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + menu.Image), 32, 32); } else { btnmenu.Image = new Bitmap(Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + @"images\defaultmenu.ico"), 32, 32); } // btnmenu.ImageListSizeSelection = DevComponents.DotNetBar.eButtonImageListSelection.Large; btnmenu.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; btnmenu.Text = menu.Name; btnmenu.Tag = menu; btnmenu.Click += new EventHandler(btnmenu_Click); menuClass.Items.Add(btnmenu); } //listbar.Add(menuClass); rPanel.Controls.Add(menuClass); //rPanel.Refresh(); } else { //菜单没有二级分类菜单则创建默认二级分类菜单 if (rMenuClass == null) { rMenuClass = new RibbonBar(); rMenuClass.AutoOverflowEnabled = true; rMenuClass.Dock = System.Windows.Forms.DockStyle.Left; rMenuClass.Text = "操作功能"; rPanel.Controls.Add(rMenuClass); } DevComponents.DotNetBar.ButtonItem btnmenu = new ButtonItem(_menus[j].MenuId.ToString(), _menus[j].Name); //btnmenu.Image = global::EFWBaseLib.Properties.Resources.defaulttool; //btnmenu.ImageListSizeSelection = DevComponents.DotNetBar.eButtonImageListSelection.Large; if (!string.IsNullOrEmpty(_menus[j].Image)) { btnmenu.Image = Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + _menus[j].Image); btnmenu.Image = new Bitmap(Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + _menus[j].Image), 32, 32); } else { btnmenu.Image = Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + @"images\defaultmenu.ico"); } btnmenu.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; btnmenu.Text = _menus[j].Name; btnmenu.Tag = _menus[j]; btnmenu.Click += new EventHandler(btnmenu_Click); rMenuClass.Items.Add(btnmenu); } } } #endregion ribbonControl1.Items.Insert(ribbonControl1.Items.Count - 1, ribbonTabItemModule); ribbonControl1.Controls.Add(rPanel); rPanel.ResumeLayout(false); ribbonTabItemModule.Refresh(); #endregion } ribbonControl1.Show(); //ribbonTabItem1.Visible = false; //ribbonTabItem2.Visible = false; ribbonControl1.Refresh(); this.Refresh(); ribbonControl1.SelectFirstVisibleRibbonTab(); }
private string GetQATRibbonBarName(RibbonBar bar) { return "qt_" + bar.Name; }
public void showSysMenu() { int ritemCount = ribbonControl1.Items.Count - 1; for (int i = 0; i < ritemCount; i++) { ribbonControl1.Items.Remove(0); } for (int i = 0; i < modules.Count; i++) { #region 循环插入模块 DevComponents.DotNetBar.RibbonTabItem ribbonTabItemModule = new RibbonTabItem(); DevComponents.DotNetBar.RibbonPanel rPanel = new RibbonPanel(); ribbonTabItemModule.Panel = rPanel; //this.ribbonControl1.SuspendLayout(); rPanel.SuspendLayout(); rPanel.Dock = DockStyle.Fill; rPanel.Name = "panel" + modules[i].ModuleId.ToString(); rPanel.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; rPanel.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; rPanel.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; rPanel.Location = new Point(0, 0x3a); rPanel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); rPanel.Padding = new System.Windows.Forms.Padding(3, 0, 3, 4); rPanel.Size = new Size(0x47a, 0x73); //ribbonTabItemModule.Checked = true; //ribbonTabItemModule.ItemAlignment = eItemAlignment.Near; ribbonTabItemModule.Name = "module" + modules[i].ModuleId.ToString(); ribbonTabItemModule.Text = modules[i].Name; ribbonTabItemModule.Tag = modules[i]; ribbonTabItemModule.HotFontBold = true; DevComponents.DotNetBar.RibbonBar rMenuClass = null; #region 增加子菜单 List <BaseMenu> _menus = menus.FindAll(x => (x.ModuleId == modules[i].ModuleId && x.PMenuId == -1)).OrderByDescending(x => x.SortId).ToList(); if (_menus.Count > 0) { //List<RibbonBar> listbar = new List<RibbonBar>(); for (int j = 0; j < _menus.Count; j++) { if (string.IsNullOrEmpty(_menus[j].DllName) && string.IsNullOrEmpty(_menus[j].UrlId)) { //为二级分类菜单 DevComponents.DotNetBar.RibbonBar menuClass = new RibbonBar(); menuClass.AutoOverflowEnabled = true; menuClass.Dock = System.Windows.Forms.DockStyle.Left; menuClass.ContainerControlProcessDialogKey = true; menuClass.Text = _menus[j].Name; menuClass.TitleVisible = false; //三级菜单 List <BaseMenu> mainMenu = menus.FindAll(x => x.PMenuId == _menus[j].MenuId).OrderByDescending(x => x.SortId).ToList(); foreach (BaseMenu menu in mainMenu) { DevComponents.DotNetBar.ButtonItem btnmenu = new ButtonItem(menu.MenuId.ToString(), menu.Name); // btnmenu.Image = global::EFWBaseLib.Properties.Resources.defaulttool; if (!string.IsNullOrEmpty(menu.Image) && System.IO.File.Exists(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + menu.Image)) { btnmenu.Image = new Bitmap(Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + menu.Image), 24, 24); } else { btnmenu.Image = new Bitmap(Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + @"images\defaultmenu.ico"), 24, 24); } // btnmenu.ImageListSizeSelection = DevComponents.DotNetBar.eButtonImageListSelection.Large; btnmenu.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; btnmenu.Text = menu.Name; btnmenu.Tag = menu; btnmenu.ImageListSizeSelection = eButtonImageListSelection.Default; //btnmenu.ImagePosition = eImagePosition.Left; btnmenu.Click += new EventHandler(btnmenu_Click); menuClass.Items.Add(btnmenu); } //listbar.Add(menuClass); rPanel.Controls.Add(menuClass); //rPanel.Refresh(); } else { //菜单没有二级分类菜单则创建默认二级分类菜单 if (rMenuClass == null) { rMenuClass = new RibbonBar(); rMenuClass.AutoOverflowEnabled = true; rMenuClass.Dock = System.Windows.Forms.DockStyle.Left; rMenuClass.Text = "操作功能"; rMenuClass.TitleVisible = false; rPanel.Controls.Add(rMenuClass); } DevComponents.DotNetBar.ButtonItem btnmenu = new ButtonItem(_menus[j].MenuId.ToString(), _menus[j].Name); //btnmenu.Image = global::EFWBaseLib.Properties.Resources.defaulttool; //btnmenu.ImageListSizeSelection = DevComponents.DotNetBar.eButtonImageListSelection.Large; if (!string.IsNullOrEmpty(_menus[j].Image)) { btnmenu.Image = Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + _menus[j].Image); btnmenu.Image = new Bitmap(Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + _menus[j].Image), 32, 32); } else { btnmenu.Image = Image.FromFile(EFWCoreLib.CoreFrame.Init.AppGlobal.AppRootPath + @"images\defaultmenu.ico"); } btnmenu.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; btnmenu.Text = _menus[j].Name; btnmenu.Tag = _menus[j]; btnmenu.Click += new EventHandler(btnmenu_Click); rMenuClass.Items.Add(btnmenu); } } } #endregion ribbonControl1.Items.Insert(ribbonControl1.Items.Count - 1, ribbonTabItemModule); ribbonControl1.Controls.Add(rPanel); rPanel.ResumeLayout(false); ribbonTabItemModule.Refresh(); #endregion } ribbonControl1.Show(); //ribbonTabItem1.Visible = false; //ribbonTabItem2.Visible = false; ribbonControl1.Refresh(); this.Refresh(); ribbonControl1.SelectFirstVisibleRibbonTab(); }
private RibbonBar CreateGroupBar(TabGroup groupConfig) { var ribbonBar = new RibbonBar { Text = groupConfig.Name, HorizontalItemAlignment = eHorizontalItemsAlignment.Center, VerticalItemAlignment = eVerticalItemsAlignment.Middle, AutoOverflowEnabled = false }; ribbonBar.Items.Add(CreateBarItem(groupConfig.Items)); return ribbonBar; }