private void AddVisualStyleMenu(SpreadsheetRibbon ribbon) { ToolStripEx panel = new ToolStripEx(); panel.GripStyle = ToolStripGripStyle.Hidden; panel.Office12Mode = false; panel.Size = new Size(143, 0); panel.ShowLauncher = false; panel.Text = "Visual Style"; visualStyleComboBox = new ToolStripComboBoxEx(); visualStyleComboBox.Size = new Size(140, 0); visualStyleComboBox.Style = ToolStripExStyle.Metro; visualStyleComboBox.DropDownStyle = ComboBoxStyle.DropDownList; visualStyleComboBox.Font = new Font("Segoe UI", 9, FontStyle.Regular); visualStyleComboBox.Items.Add("Default"); visualStyleComboBox.Items.Add("Office 2016 Colorful"); visualStyleComboBox.Items.Add("Office 2016 DarkGray"); visualStyleComboBox.Items.Add("Office 2016 Black"); visualStyleComboBox.Items.Add("Office 2016 White"); visualStyleComboBox.SelectedIndex = 3; visualStyleComboBox.SelectedIndexChanged += visualStyleComboBox_SelectedIndexChanged; visualStyleComboBox.DropDownClosed += visualStyleComboBox_DropDownClosed; panel.Items.Add(visualStyleComboBox); var tab = ribbon.Header.MainItems[2] as ToolStripTabItem; tab.Panel.Controls.Add(panel); }
public static ToolStripComboBoxEx AddComboBox(this ToolStripPanelItem parent) { var item = new ToolStripComboBoxEx(); item.Style = ToolStripExStyle.Office2016Colorful; parent.Items.Add(item); return(item); }
private void SilentSetSelectedItem(ToolStripComboBoxEx a_Combo, Object a_Item, EventHandler a_EventChanged, CancelEventHandler a_EventChanging) { // Disable notifications a_Combo.SelectedIndexChanged -= a_EventChanged; a_Combo.SelectedIndexChanging -= a_EventChanging; // Set selection a_Combo.SelectedItem = a_Item; // Enable notifications a_Combo.SelectedIndexChanged += a_EventChanged; a_Combo.SelectedIndexChanging += a_EventChanging; }
public ToolStripComboBoxEx AddComboBox(IMenuItem menuItem) { ToolStripEx ex = AddToolStripEx(menuItem.ToolStripExName, menuItem.ToolStripExName, menuItem.HeaderName); ToolStripComboBoxEx btn = new ToolStripComboBoxEx(); btn.Name = menuItem.UniqueKey; ToolStripItem item = btn as ToolStripItem; item.Tag = menuItem; item.Click += Item_Click; ex.Items.Add(btn); return(btn); }
private void Init_TlbCmbCharacter(bool a_IsSilent) { EventHandler myHandler1 = new EventHandler(TlbCmbCharacter_SelectedIndexChanged); CancelEventHandler myHandler2 = new CancelEventHandler(TlbCmbCharacter_SelectedIndexChanging); ToolStripComboBoxEx currCombo = TlbCmbCharacter; UInt32 oldCharID = character_AllItems; if (null != currCombo.SelectedItem) { oldCharID = ((TextItemWithUInt32)currCombo.SelectedItem).Data; } currCombo.Items.Clear(); TextItemWithUInt32 newItem = new TextItemWithUInt32("[All items]", character_AllItems); TextItemWithUInt32 selectItem = newItem; currCombo.Items.Add(newItem); newItem = new TextItemWithUInt32("[Edit list...]", character_EditApiKeys); currCombo.Items.Add(newItem); foreach (Settings.V1._ApiChar currChar in m_Engine.m_Settings.ApiAccess.Chars) { newItem = new TextItemWithUInt32(currChar.CharacterName, currChar.CharacterID); currCombo.Items.Add(newItem); if (newItem.Data == oldCharID) { selectItem = newItem; } } if (a_IsSilent || (oldCharID == selectItem.Data)) { SilentSetSelectedItem(currCombo, selectItem, myHandler1, myHandler2); } else { currCombo.SelectedItem = selectItem; } }
public FDMenus(IMainForm mainForm) { // modify the file menu ToolStripMenuItem fileMenu = (ToolStripMenuItem)mainForm.FindMenuItem("FileMenu"); RecentProjects = new RecentProjectsMenu(); fileMenu.DropDownItems.Insert(5, RecentProjects); // modify the view menu ToolStripMenuItem viewMenu = (ToolStripMenuItem)mainForm.FindMenuItem("ViewMenu"); View = new ToolStripMenuItem(TextHelper.GetString("Label.MainMenuItem")); View.Image = Icons.Project.Img; viewMenu.DropDownItems.Add(View); PluginBase.MainForm.RegisterShortcutItem("ViewMenu.ShowProject", View); // modify the tools menu - add a nice GUI classpath editor ToolStripMenuItem toolsMenu = (ToolStripMenuItem)mainForm.FindMenuItem("ToolsMenu"); GlobalClasspaths = new ToolStripMenuItem(TextHelper.GetString("Label.GlobalClasspaths")); GlobalClasspaths.ShortcutKeys = Keys.F9 | Keys.Control; GlobalClasspaths.Image = Icons.Classpath.Img; toolsMenu.DropDownItems.Insert(toolsMenu.DropDownItems.Count - 4, GlobalClasspaths); PluginBase.MainForm.RegisterShortcutItem("ToolsMenu.GlobalClasspaths", GlobalClasspaths); ProjectMenu = new ProjectMenu(); MenuStrip mainMenu = mainForm.MenuStrip; mainMenu.Items.Insert(5, ProjectMenu); ToolStrip toolBar = mainForm.ToolStrip; toolBar.Items.Add(new ToolStripSeparator()); toolBar.Items.Add(RecentProjects.ToolbarSelector); BuildProject = new ToolStripButton(Icons.Gear.Img); BuildProject.Name = "BuildProject"; BuildProject.ToolTipText = TextHelper.GetString("Label.BuildProject").Replace("&", ""); PluginBase.MainForm.RegisterSecondaryItem("ProjectMenu.BuildProject", BuildProject); toolBar.Items.Add(BuildProject); TestMovie = new ToolStripButton(Icons.GreenCheck.Img); TestMovie.Name = "TestMovie"; TestMovie.ToolTipText = TextHelper.GetString("Label.TestMovie").Replace("&", ""); PluginBase.MainForm.RegisterSecondaryItem("ProjectMenu.TestMovie", TestMovie); toolBar.Items.Add(TestMovie); ConfigurationSelector = new ToolStripComboBoxEx(); ConfigurationSelector.Name = "ConfigurationSelector"; ConfigurationSelector.ToolTipText = TextHelper.GetString("ToolTip.SelectConfiguration"); ConfigurationSelector.Items.AddRange(new string[] { TextHelper.GetString("Info.Debug"), TextHelper.GetString("Info.Release") }); ConfigurationSelector.DropDownStyle = ComboBoxStyle.DropDownList; ConfigurationSelector.AutoSize = false; ConfigurationSelector.Enabled = false; ConfigurationSelector.Width = ScaleHelper.Scale(85); ConfigurationSelector.Margin = new Padding(1, 0, 0, 0); ConfigurationSelector.FlatStyle = PluginBase.MainForm.Settings.ComboBoxFlatStyle; ConfigurationSelector.Font = PluginBase.Settings.DefaultFont; toolBar.Items.Add(ConfigurationSelector); PluginBase.MainForm.RegisterShortcutItem("ProjectMenu.ConfigurationSelectorToggle", Keys.Control | Keys.F5); PluginBase.MainForm.RegisterSecondaryItem("ProjectMenu.ConfigurationSelectorToggle", ConfigurationSelector); TargetBuildSelector = new ToolStripComboBoxEx(); TargetBuildSelector.Name = "TargetBuildSelector"; TargetBuildSelector.ToolTipText = TextHelper.GetString("ToolTip.TargetBuild"); TargetBuildSelector.AutoSize = false; TargetBuildSelector.Width = ScaleHelper.Scale(85); TargetBuildSelector.Margin = new Padding(1, 0, 0, 0); TargetBuildSelector.FlatStyle = PluginBase.MainForm.Settings.ComboBoxFlatStyle; TargetBuildSelector.Font = PluginBase.Settings.DefaultFont; toolBar.Items.Add(TargetBuildSelector); PluginBase.MainForm.RegisterShortcutItem("ProjectMenu.TargetBuildSelector", Keys.Control | Keys.F6); PluginBase.MainForm.RegisterSecondaryItem("ProjectMenu.TargetBuildSelector", TargetBuildSelector); EnableTargetBuildSelector(false); }
private void InitializeComponent() { this.tsActions = new PluginCore.Controls.ToolStripEx(); this.tsbRemoveSelected = new System.Windows.Forms.ToolStripButton(); this.tsbRemoveFiltered = new System.Windows.Forms.ToolStripButton(); this.tsbAlternateFiltered = new System.Windows.Forms.ToolStripButton(); this.tsSeparator = new System.Windows.Forms.ToolStripSeparator(); this.tsbExportFiltered = new System.Windows.Forms.ToolStripButton(); this.tsbImport = new System.Windows.Forms.ToolStripButton(); this.tstxtFilter = new System.Windows.Forms.ToolStripTextBox(); this.tscbFilterColumns = new System.Windows.Forms.ToolStripComboBoxEx(); this.tsActions.SuspendLayout(); this.SuspendLayout(); // // tsActions // this.tsActions.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.tsActions.ImageScalingSize = ScaleHelper.Scale(new Size(16, 16)); this.tsActions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbRemoveSelected, this.tsbRemoveFiltered, this.tsbAlternateFiltered, this.tsSeparator, this.tsbExportFiltered, this.tsbImport, this.tstxtFilter, this.tscbFilterColumns }); this.tsActions.Location = new System.Drawing.Point(1, 0); this.tsActions.Name = "tsActions"; this.tsActions.Size = new System.Drawing.Size(148, 27); this.tsActions.TabIndex = 0; this.tsActions.Text = "toolStrip1"; // // tsbRemoveSelected // this.tsbRemoveSelected.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRemoveSelected.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbRemoveSelected.Name = "tsbRemoveSelected"; this.tsbRemoveSelected.Size = new System.Drawing.Size(23, 24); this.tsbRemoveSelected.Text = "toolStripButton1"; this.tsbRemoveSelected.Click += new System.EventHandler(this.TsbRemoveSelected_Click); // // tsbRemoveFiltered // this.tsbRemoveFiltered.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbRemoveFiltered.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbRemoveFiltered.Name = "tsbRemoveFiltered"; this.tsbRemoveFiltered.Size = new System.Drawing.Size(23, 24); this.tsbRemoveFiltered.Text = "toolStripButton2"; this.tsbRemoveFiltered.Click += new System.EventHandler(this.TsbRemoveFiltered_Click); // // tsbAlternateFiltered // this.tsbAlternateFiltered.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbAlternateFiltered.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbAlternateFiltered.Name = "tsbAlternateFiltered"; this.tsbAlternateFiltered.Size = new System.Drawing.Size(23, 24); this.tsbAlternateFiltered.Text = "toolStripButton3"; this.tsbAlternateFiltered.Click += new System.EventHandler(this.TsbAlternateFiltered_Click); // // tsSeparator // this.tsSeparator.Name = "tsSeparator"; this.tsSeparator.Size = new System.Drawing.Size(6, 27); // // tsbExportFiltered // this.tsbExportFiltered.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbExportFiltered.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbExportFiltered.Name = "tsbExportFiltered"; this.tsbExportFiltered.Size = new System.Drawing.Size(23, 24); this.tsbExportFiltered.Text = "toolStripButton4"; this.tsbExportFiltered.Click += new System.EventHandler(this.TsbExportFiltered_Click); // // tsbImport // this.tsbImport.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbImport.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbImport.Name = "tsbImport"; this.tsbImport.Size = new System.Drawing.Size(23, 24); this.tsbImport.Text = "toolStripButton5"; this.tsbImport.Click += new System.EventHandler(this.TsbImport_Click); // // tstxtFilter // this.tstxtFilter.Name = "tstxtFilter"; this.tstxtFilter.Size = new System.Drawing.Size(ScaleHelper.Scale(90), 23); this.tstxtFilter.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TstxtFilter_KeyDown); // // tscbFilterColumns // this.tscbFilterColumns.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.tscbFilterColumns.Name = "tscbFilterColumns"; this.tscbFilterColumns.Size = new System.Drawing.Size(ScaleHelper.Scale(116), 23); // // BreakPointUI // this.Controls.Add(this.tsActions); this.Name = "BreakPointUI"; this.tsActions.ResumeLayout(false); this.tsActions.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HtmlEditor)); this.toolStripToolBar = new System.Windows.Forms.ToolStrip(); this.toolStripComboBoxName = new System.Windows.Forms.ToolStripComboBox(); this.toolStripComboBoxSize = new YXControl.HtmlEditor.ToolStripComboBoxEx(); this.toolStripButtonBold = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonItalic = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonUnderline = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonColor = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparatorFont = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButtonNumbers = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonBullets = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonOutdent = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonIndent = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparatorFormat = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButtonLeft = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonCenter = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonRight = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonFull = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparatorAlign = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButtonLine = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonHyperlink = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonPicture = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButtonUnDo = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonRedo = new System.Windows.Forms.ToolStripButton(); this.webBrowserBody = new System.Windows.Forms.WebBrowser(); this.toolStripToolBar.SuspendLayout(); this.SuspendLayout(); // // toolStripToolBar // this.toolStripToolBar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStripToolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripComboBoxName, this.toolStripComboBoxSize, this.toolStripButtonBold, this.toolStripButtonItalic, this.toolStripButtonUnderline, this.toolStripButtonColor, this.toolStripSeparatorFont, this.toolStripButtonNumbers, this.toolStripButtonBullets, this.toolStripButtonOutdent, this.toolStripButtonIndent, this.toolStripSeparatorFormat, this.toolStripButtonLeft, this.toolStripButtonCenter, this.toolStripButtonRight, this.toolStripButtonFull, this.toolStripSeparatorAlign, this.toolStripButtonLine, this.toolStripButtonHyperlink, this.toolStripButtonPicture, this.toolStripSeparator1, this.toolStripButtonUnDo, this.toolStripButtonRedo}); this.toolStripToolBar.Location = new System.Drawing.Point(0, 0); this.toolStripToolBar.Name = "toolStripToolBar"; this.toolStripToolBar.Size = new System.Drawing.Size(600, 25); this.toolStripToolBar.TabIndex = 1; this.toolStripToolBar.Text = "Tool Bar"; // // toolStripComboBoxName // this.toolStripComboBoxName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.toolStripComboBoxName.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.toolStripComboBoxName.MaxDropDownItems = 20; this.toolStripComboBoxName.Name = "toolStripComboBoxName"; this.toolStripComboBoxName.Size = new System.Drawing.Size(100, 25); this.toolStripComboBoxName.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBoxName_SelectedIndexChanged); // // toolStripComboBoxSize // this.toolStripComboBoxSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.toolStripComboBoxSize.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.toolStripComboBoxSize.Name = "toolStripComboBoxSize"; this.toolStripComboBoxSize.Size = new System.Drawing.Size(40, 25); this.toolStripComboBoxSize.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBoxSize_SelectedIndexChanged); // // toolStripButtonBold // this.toolStripButtonBold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonBold.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonBold.Image"))); this.toolStripButtonBold.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonBold.Name = "toolStripButtonBold"; this.toolStripButtonBold.Size = new System.Drawing.Size(23, 22); this.toolStripButtonBold.Text = "Bold"; this.toolStripButtonBold.ToolTipText = "�Ӵ�"; this.toolStripButtonBold.Click += new System.EventHandler(this.toolStripButtonBold_Click); // // toolStripButtonItalic // this.toolStripButtonItalic.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonItalic.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonItalic.Image"))); this.toolStripButtonItalic.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonItalic.Name = "toolStripButtonItalic"; this.toolStripButtonItalic.Size = new System.Drawing.Size(23, 22); this.toolStripButtonItalic.Text = "Italic"; this.toolStripButtonItalic.ToolTipText = "б��"; this.toolStripButtonItalic.Click += new System.EventHandler(this.toolStripButtonItalic_Click); // // toolStripButtonUnderline // this.toolStripButtonUnderline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonUnderline.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonUnderline.Image"))); this.toolStripButtonUnderline.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonUnderline.Name = "toolStripButtonUnderline"; this.toolStripButtonUnderline.Size = new System.Drawing.Size(23, 22); this.toolStripButtonUnderline.Text = "Underline"; this.toolStripButtonUnderline.ToolTipText = "�»���"; this.toolStripButtonUnderline.Click += new System.EventHandler(this.toolStripButtonUnderline_Click); // // toolStripButtonColor // this.toolStripButtonColor.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonColor.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonColor.Image"))); this.toolStripButtonColor.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonColor.Name = "toolStripButtonColor"; this.toolStripButtonColor.Size = new System.Drawing.Size(23, 22); this.toolStripButtonColor.Text = "Font Color"; this.toolStripButtonColor.ToolTipText = "������ɫ"; this.toolStripButtonColor.Click += new System.EventHandler(this.toolStripButtonColor_Click); // // toolStripSeparatorFont // this.toolStripSeparatorFont.Name = "toolStripSeparatorFont"; this.toolStripSeparatorFont.Size = new System.Drawing.Size(6, 25); // // toolStripButtonNumbers // this.toolStripButtonNumbers.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonNumbers.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonNumbers.Image"))); this.toolStripButtonNumbers.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonNumbers.Name = "toolStripButtonNumbers"; this.toolStripButtonNumbers.Size = new System.Drawing.Size(23, 22); this.toolStripButtonNumbers.Text = "Format Numbers"; this.toolStripButtonNumbers.Click += new System.EventHandler(this.toolStripButtonNumbers_Click); // // toolStripButtonBullets // this.toolStripButtonBullets.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonBullets.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonBullets.Image"))); this.toolStripButtonBullets.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonBullets.Name = "toolStripButtonBullets"; this.toolStripButtonBullets.Size = new System.Drawing.Size(23, 22); this.toolStripButtonBullets.Text = "Format Bullets"; this.toolStripButtonBullets.Click += new System.EventHandler(this.toolStripButtonBullets_Click); // // toolStripButtonOutdent // this.toolStripButtonOutdent.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonOutdent.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonOutdent.Image"))); this.toolStripButtonOutdent.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonOutdent.Name = "toolStripButtonOutdent"; this.toolStripButtonOutdent.Size = new System.Drawing.Size(23, 22); this.toolStripButtonOutdent.Text = "Decrease Indentation"; this.toolStripButtonOutdent.Click += new System.EventHandler(this.toolStripButtonOutdent_Click); // // toolStripButtonIndent // this.toolStripButtonIndent.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonIndent.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonIndent.Image"))); this.toolStripButtonIndent.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonIndent.Name = "toolStripButtonIndent"; this.toolStripButtonIndent.Size = new System.Drawing.Size(23, 22); this.toolStripButtonIndent.Text = "Increase Indentation"; this.toolStripButtonIndent.Click += new System.EventHandler(this.toolStripButtonIndent_Click); // // toolStripSeparatorFormat // this.toolStripSeparatorFormat.Name = "toolStripSeparatorFormat"; this.toolStripSeparatorFormat.Size = new System.Drawing.Size(6, 25); // // toolStripButtonLeft // this.toolStripButtonLeft.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonLeft.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonLeft.Image"))); this.toolStripButtonLeft.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonLeft.Name = "toolStripButtonLeft"; this.toolStripButtonLeft.Size = new System.Drawing.Size(23, 22); this.toolStripButtonLeft.Text = "Align Left"; this.toolStripButtonLeft.Click += new System.EventHandler(this.toolStripButtonLeft_Click); // // toolStripButtonCenter // this.toolStripButtonCenter.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonCenter.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonCenter.Image"))); this.toolStripButtonCenter.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonCenter.Name = "toolStripButtonCenter"; this.toolStripButtonCenter.Size = new System.Drawing.Size(23, 22); this.toolStripButtonCenter.Text = "Center"; this.toolStripButtonCenter.Click += new System.EventHandler(this.toolStripButtonCenter_Click); // // toolStripButtonRight // this.toolStripButtonRight.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonRight.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonRight.Image"))); this.toolStripButtonRight.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonRight.Name = "toolStripButtonRight"; this.toolStripButtonRight.Size = new System.Drawing.Size(23, 22); this.toolStripButtonRight.Text = "Align Right"; this.toolStripButtonRight.Click += new System.EventHandler(this.toolStripButtonRight_Click); // // toolStripButtonFull // this.toolStripButtonFull.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonFull.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonFull.Image"))); this.toolStripButtonFull.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonFull.Name = "toolStripButtonFull"; this.toolStripButtonFull.Size = new System.Drawing.Size(23, 22); this.toolStripButtonFull.Text = "Justify"; this.toolStripButtonFull.Click += new System.EventHandler(this.toolStripButtonFull_Click); // // toolStripSeparatorAlign // this.toolStripSeparatorAlign.Name = "toolStripSeparatorAlign"; this.toolStripSeparatorAlign.Size = new System.Drawing.Size(6, 25); // // toolStripButtonLine // this.toolStripButtonLine.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonLine.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonLine.Image"))); this.toolStripButtonLine.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonLine.Name = "toolStripButtonLine"; this.toolStripButtonLine.Size = new System.Drawing.Size(23, 22); this.toolStripButtonLine.Text = "Insert Horizontal Line"; this.toolStripButtonLine.Click += new System.EventHandler(this.toolStripButtonLine_Click); // // toolStripButtonHyperlink // this.toolStripButtonHyperlink.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonHyperlink.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonHyperlink.Image"))); this.toolStripButtonHyperlink.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonHyperlink.Name = "toolStripButtonHyperlink"; this.toolStripButtonHyperlink.Size = new System.Drawing.Size(23, 22); this.toolStripButtonHyperlink.Text = "Create a Hyperlink"; this.toolStripButtonHyperlink.ToolTipText = "��������"; this.toolStripButtonHyperlink.Click += new System.EventHandler(this.toolStripButtonHyperlink_Click); // // toolStripButtonPicture // this.toolStripButtonPicture.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonPicture.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonPicture.Image"))); this.toolStripButtonPicture.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonPicture.Name = "toolStripButtonPicture"; this.toolStripButtonPicture.Size = new System.Drawing.Size(23, 22); this.toolStripButtonPicture.Text = "Insert Picture"; this.toolStripButtonPicture.ToolTipText = "����ͼƬ"; this.toolStripButtonPicture.Click += new System.EventHandler(this.toolStripButtonPicture_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripButtonUnDo // this.toolStripButtonUnDo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonUnDo.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonUnDo.Name = "toolStripButtonUnDo"; this.toolStripButtonUnDo.Size = new System.Drawing.Size(23, 22); this.toolStripButtonUnDo.ToolTipText = "����"; this.toolStripButtonUnDo.Click += new System.EventHandler(this.toolStripButtonUnDo_Click); // // toolStripButtonRedo // this.toolStripButtonRedo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonRedo.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonRedo.Name = "toolStripButtonRedo"; this.toolStripButtonRedo.Size = new System.Drawing.Size(23, 22); this.toolStripButtonRedo.ToolTipText = "����"; this.toolStripButtonRedo.Click += new System.EventHandler(this.toolStripButtonRedo_Click); // // webBrowserBody // this.webBrowserBody.Dock = System.Windows.Forms.DockStyle.Fill; this.webBrowserBody.Location = new System.Drawing.Point(0, 25); this.webBrowserBody.MinimumSize = new System.Drawing.Size(20, 20); this.webBrowserBody.Name = "webBrowserBody"; this.webBrowserBody.Size = new System.Drawing.Size(600, 425); this.webBrowserBody.TabIndex = 2; this.webBrowserBody.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.webBrowserBody_PreviewKeyDown); this.webBrowserBody.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowserBody_DocumentCompleted); // // HtmlEditor // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.Controls.Add(this.webBrowserBody); this.Controls.Add(this.toolStripToolBar); this.Name = "HtmlEditor"; this.Size = new System.Drawing.Size(600, 450); this.toolStripToolBar.ResumeLayout(false); this.toolStripToolBar.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.toolStrip = new PluginCore.Controls.ToolStripEx(); this.toggleButton = new System.Windows.Forms.ToolStripButton(); this.topMostButton = new System.Windows.Forms.ToolStripButton(); this.clearFilterButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); this.viewLabel = new System.Windows.Forms.ToolStripLabel(); this.logComboBox = new System.Windows.Forms.ToolStripComboBoxEx(); this.filterLabel = new System.Windows.Forms.ToolStripLabel(); this.filterComboBox = new System.Windows.Forms.ToolStripSpringComboBox(); this.logTextBox = new System.Windows.Forms.RichTextBoxEx(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); // // toolStrip // this.toolStrip.CanOverflow = false; this.toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toggleButton, this.topMostButton, this.toolStripSeparator, this.viewLabel, this.logComboBox, this.filterLabel, this.filterComboBox, this.clearFilterButton }); this.toolStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow; this.toolStrip.Location = new System.Drawing.Point(1, 0); this.toolStrip.Name = "toolStrip"; this.toolStrip.Padding = new System.Windows.Forms.Padding(1, 1, 2, 2); this.toolStrip.Size = new System.Drawing.Size(683, 30); this.toolStrip.TabIndex = 1; // // toggleButton // this.toggleButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toggleButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.toggleButton.Margin = new System.Windows.Forms.Padding(1); this.toggleButton.Name = "toggleButton"; this.toggleButton.Size = new System.Drawing.Size(23, 26); this.toggleButton.Click += new System.EventHandler(this.ToggleButtonClick); // // clearFilterButton // this.clearFilterButton.Enabled = true; this.clearFilterButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.clearFilterButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.clearFilterButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.clearFilterButton.Name = "clearFilterButton"; this.clearFilterButton.Size = new System.Drawing.Size(23, 26); this.clearFilterButton.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.clearFilterButton.Click += new System.EventHandler(this.ClearFilterButtonClick); // // topMostButton // this.topMostButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.topMostButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.topMostButton.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); this.topMostButton.Name = "topMostButton"; this.topMostButton.Size = new System.Drawing.Size(23, 26); this.topMostButton.Click += new System.EventHandler(this.TopMostButtonClick); // // toolStripSeparator // this.toolStripSeparator.Name = "toolStripSeparator"; this.toolStripSeparator.Size = new System.Drawing.Size(6, 28); // // viewLabel // this.viewLabel.Margin = new System.Windows.Forms.Padding(2, 1, 0, 1); this.viewLabel.Name = "viewLabel"; this.viewLabel.Size = new System.Drawing.Size(44, 25); this.viewLabel.Text = "View:"; // // logComboBox // this.logComboBox.Enabled = false; this.logComboBox.Items.AddRange(new Object[] { TextHelper.GetString("Label.FlashLog"), TextHelper.GetString("Label.PolicyLog") }); this.logComboBox.Name = "logComboBox"; this.logComboBox.Size = new System.Drawing.Size(120, 28); this.logComboBox.SelectedIndex = 0; this.logComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.logComboBox.FlatCombo.SelectedIndexChanged += new System.EventHandler(this.LogComboBoxIndexChanged); // // filterLabel // this.filterLabel.Margin = new System.Windows.Forms.Padding(2, 1, 0, 1); this.filterLabel.Name = "filterLabel"; this.filterLabel.Size = new System.Drawing.Size(45, 25); this.filterLabel.Text = "Filter:"; // // filterComboBox // this.filterComboBox.Enabled = true; this.filterComboBox.Name = "filterComboBox"; this.filterComboBox.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.filterComboBox.Size = new System.Drawing.Size(50, 28); this.filterComboBox.TextChanged += new System.EventHandler(this.FilterTextBoxTextChanged); // // logTextBox // this.logTextBox.BackColor = System.Drawing.SystemColors.Window; this.logTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; this.logTextBox.DetectUrls = false; this.logTextBox.Dock = System.Windows.Forms.DockStyle.Fill; this.logTextBox.Font = new System.Drawing.Font("Courier New", 8.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.logTextBox.Location = new System.Drawing.Point(1, 30); this.logTextBox.Name = "logTextBox"; this.logTextBox.ReadOnly = true; this.logTextBox.Size = new System.Drawing.Size(683, 322); this.logTextBox.TabIndex = 0; this.logTextBox.Text = ""; this.logTextBox.WordWrap = false; // // PluginUI // this.Name = "PluginUI"; this.Controls.Add(this.logTextBox); this.Controls.Add(this.toolStrip); this.Size = new System.Drawing.Size(685, 352); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }