public static void loadIntoToolStripCombox_O2TraceTypes(ToolStripComboBox comboBox) { comboBox.Items.Clear(); foreach (object value in Enum.GetValues(typeof (TraceType))) comboBox.Items.Add(value); }
public static void loadIntoToolStripCombox_O2FindingFieldsNames(ToolStripComboBox comboBox, string defaultValue) { comboBox.Items.Clear(); foreach (PropertyInfo property in typeof (O2Finding).GetProperties()) comboBox.Items.Add(property.Name); comboBox.Text = defaultValue; }
static void ApplyTheme(ToolStripComboBox c) { c.Font = new Font("Times New Roman", 9.0f); c.BackColor = Color.White; c.ForeColor = Color.Black; c.FlatStyle = FlatStyle.System; }
void LoggersContextMenuStripOpening(object sender, System.ComponentModel.CancelEventArgs e) { Logger ContextLogger = (Logger)ActiveLoggersCheckedListBox.SelectedItem; LoggersContextMenuStrip.Items.Clear(); this.LoggersContextMenuStrip.Items.Add("Log Level"); //add LogLoggingLevelComboBox ToolStripComboBox LoggerLoggingLevelComboBox; LoggerLoggingLevelComboBox = new System.Windows.Forms.ToolStripComboBox(); LoggerLoggingLevelComboBox.DropDownStyle = ComboBoxStyle.DropDownList; foreach (string name in Enum.GetNames(typeof(LoggingEntery.EnteryTypes))) { LoggerLoggingLevelComboBox.Items.Add(name); } LoggerLoggingLevelComboBox.SelectedIndex = ContextLogger.LoggigLevel; LoggerLoggingLevelComboBox.SelectedIndexChanged += new System.EventHandler(this.LoggerLoggingLevelComboBoxIndexChanged); this.LoggersContextMenuStrip.Items.Add(LoggerLoggingLevelComboBox); // if (ContextLogger.ExtraData != null) { ToolStripTextBox ExtraDataTextBox = new ToolStripTextBox(); ExtraDataTextBox.Text = ContextLogger.ExtraData; ExtraDataTextBox.TextChanged += new System.EventHandler(this.LoggerExtraDataTextChanged); this.LoggersContextMenuStrip.Items.Add(ExtraDataTextBox); } }
protected ToolStripComboBox CreateComboBox(ChoiceGroup choice, bool wantsSeparatorBefore) { UIItemDisplayProperties display = choice.GetDisplayProperties(); string label = display.Text; choice.PopulateNow(); if (label == null) label = AdapterStrings.ErrorGeneratingLabel; if (!display.Visible) return null; label = label.Replace("_", "&"); ToolStripComboBox combo = new ToolStripComboBox(); combo.Text = label; //foreach(ChoiceBase s in choice) //{ // item.Items.Add(s.Label); //} //item.Tag = choice; choice.ReferenceWidget = combo; combo.Tag = choice; FillCombo(choice); combo.SelectedIndexChanged += new EventHandler(OnSelectedIndexChanged); combo.Enabled = display.Enabled; combo.Visible = display.Visible; return combo; }
void IInitializable.Initialize() { if (m_pickFilters == null) { m_designView.PickFilter = new DefaultPickFilter(); return; } m_pickFilterComboBox = new ToolStripComboBox(); m_pickFilterComboBox.BeginUpdate(); m_pickFilterComboBox.DropDownStyle = ComboBoxStyle.DropDownList; m_pickFilterComboBox.Name = "pickCombo"; m_pickFilterComboBox.ToolTipText = "Picking Filter".Localize(); var defFilter = new DefaultPickFilter(); m_filters.Add(defFilter.Name, defFilter); m_pickFilterComboBox.Items.Add(defFilter.Name); foreach (IPickFilter pickFilter in m_pickFilters) { m_filters.Add(pickFilter.Name, pickFilter); m_pickFilterComboBox.Items.Add(pickFilter.Name); } m_designView.PickFilter = defFilter; m_pickFilterComboBox.SelectedIndex = 0; m_pickFilterComboBox.EndUpdate(); MenuInfo.Edit.GetToolStrip().Items.Add(m_pickFilterComboBox); m_pickFilterComboBox.SelectedIndexChanged += PickpickFilterComboBox_SelectedIndexChanged; m_settingsService.RegisterSettings(this,new BoundPropertyDescriptor(this, () => ActivePickFilter, "ActiveFilter",null, null)); }
/* поиск по ключу */ public void KeySearch(String _sqlQuery, ToolStripComboBox _cbox) { bool resolution = true; try{ for(int k = 0; k < _cbox.Items.Count; k++) if(_cbox.Items[k].ToString() == _cbox.Text) resolution = false; if(resolution) _cbox.Items.Add(_cbox.Text); _localDataSet.Clear(); // очистка _localClient.SelectSqlCommand = _sqlQuery; _localClient.ExecuteFill(_localDataSet, "Хранилище"); // Загрузка дерева даных String NameGr = ""; treeView1.Nodes.Clear(); for(int i = 0; i < _localDataSet.Tables["Хранилище"].Rows.Count; i++){ if(_localDataSet.Tables["Хранилище"].Rows[i]["ТипОбъекта"].ToString() == "Элемент"){ NameGr = _localDataSet.Tables["Хранилище"].Rows[i]["ФайлИдентификатор"].ToString(); treeView1.Nodes.Add(NameGr); treeView1.Nodes[treeView1.Nodes.Count-1].ImageIndex = 2; treeView1.Nodes[treeView1.Nodes.Count-1].SelectedImageIndex = 2; } } treeView1.Select(); if(treeView1.Nodes.Count <= 0) treeviewMenu(""); }catch{ treeView1.Nodes.Clear(); _localDataSet.Clear(); richTextBox1.Clear(); } }
/// <summary> /// Создание меню главного окна программы /// </summary> private void MenuInitialization() { this.menu = new MenuStrip(); this.MainMenuStrip = menu; this.Controls.Add(this.menu); this.menu.BackColor = Color.DimGray; this.menu.ForeColor = Color.LightSkyBlue; this.menu.Dock = DockStyle.Top; this.menuItemFile = (ToolStripMenuItem)this.menu.Items.Add("&File"); this.menuItemEdit = (ToolStripMenuItem)this.menu.Items.Add("&Edit"); this.menuItemComboBox = new ToolStripComboBox(); this.menuItemComboBox.Items.Add("connect"); this.menuItemComboBox.Items.Add("disconnect"); this.menuItemComboBox.SelectedItem = "connect"; this.menu.Items.Add(this.menuItemComboBox); this.menuItemSearch = new ToolStripTextBox(); this.menuItemSearch.Text = "Поиск"; this.menuItemSearch.ForeColor = Color.DimGray; this.menu.Items.Add(this.menuItemSearch); this.fileItemOpen = this.menuItemFile.DropDownItems.Add("Open"); this.fileItemSave = this.menuItemFile.DropDownItems.Add("Save"); this.fileItemClose = this.menuItemFile.DropDownItems.Add("Close"); this.editItemUndo = this.menuItemEdit.DropDownItems.Add("Undo"); this.editItemRedo = this.menuItemEdit.DropDownItems.Add("Redo"); this.menuItemEdit.DropDownItems.Add(new ToolStripSeparator()); this.editItemCopy = this.menuItemEdit.DropDownItems.Add("Copy"); this.editItemPast = this.menuItemEdit.DropDownItems.Add("Past"); this.menu.Show(); }
public ZoomAdaptor(PicView picView, ToolStripButton plusBtn, ToolStripButton minusBtn, ToolStripComboBox combox) { this.picView = picView; //this.form = form; this.plusBtn = plusBtn; this.minusBtn = minusBtn; this.combox = combox; picView.ZoomChanged += new EventHandler(zoomChanged); plusBtn.Click += new EventHandler(btnClick); minusBtn.Click += new EventHandler(btnClick); combox.DropDownStyle = ComboBoxStyle.DropDown; combox.DropDownHeight = 200; for(int i=20; i<=100; i+=20){ combox.Items.Add(i.ToString() + "%"); } combox.SelectedIndexChanged += new EventHandler(comboxTextUpdate); combox.Leave += new EventHandler(comboxTextUpdate); combox.KeyDown += new KeyEventHandler(comboxKeyDown); renew(); }
public LangComboxAdaptor(ToolStripComboBox combox,Form frm) { this.combox = combox; this.frm = frm; combox.Items.Clear(); string lang = StringResources.GetValue("lang"); if (lang == null) { lang = "EN"; } ArrayList tmpList = (ArrayList)Language.GetLanguageList(lang); foreach (string tmpStr in tmpList) { int idex= combox.Items.Add(tmpStr); if (getLangFromString(tmpStr) == lang) { combox.SelectedIndex = idex; } } /* Reg Event */ combox.SelectedIndexChanged += combox_SelectedIndexChanged; }
static void ApplyTheme(ToolStripComboBox c) { c.ComboBox.Font = new Font("Franklin Gothic", 9.0f); c.ComboBox.BackColor = Color.Black; c.ComboBox.ForeColor = Color.LightGray; c.FlatStyle = FlatStyle.Popup; }
public ClassEditBookmarkHandler(frmClassEdit form) { _form = form; cboBookmark = _form.BookmarkComboBox; InitBookmarks(); }
public ParallaxToolStrip(SerialParallax osc, GraphControl gc) { oscillo = osc; graphControl = gc; // // toolStrip2 // this.toolStrip = new System.Windows.Forms.ToolStrip(); this.toolStrip.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip.Location = new System.Drawing.Point(3, 0); this.toolStrip.Name = "toolStrip2"; this.toolStrip.Size = new System.Drawing.Size(243, 25); this.toolStrip.TabIndex = 1; this.toolStrip.Text = "toolStrip2"; this.triggerLabel = new System.Windows.Forms.ToolStripLabel(); this.trigger = new System.Windows.Forms.ToolStripTextBox(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.triggerMode = new System.Windows.Forms.ToolStripComboBox(); // // triggerLabel // this.triggerLabel.Name = "triggerLabel"; this.triggerLabel.Size = new System.Drawing.Size(42, 22); this.triggerLabel.Text = "trigger"; this.toolStrip.Items.Add(this.triggerLabel); // // trigger // this.trigger.Name = "trigger"; this.trigger.Size = new System.Drawing.Size(50, 25); this.trigger.Text = "0"; this.trigger.Validating += new System.ComponentModel.CancelEventHandler(this.trigger_Validating); this.trigger.Validated += new System.EventHandler(this.trigger_Validated); this.toolStrip.Items.Add(this.trigger); // // triggerMode // this.triggerMode.Items.AddRange(new object[] { "ch1 ˄", "ch1 ˅", "ch2 ˄", "ch2 ˅", "ext ˄" }); this.triggerMode.Name = "triggerMode"; this.triggerMode.Size = new System.Drawing.Size(20, 25); this.triggerMode.SelectedIndexChanged += new System.EventHandler(this.triggerMode_SelectedIndexChanged); triggerMode.SelectedIndex = 0; this.toolStrip.Items.Add(this.triggerMode); //channels.SelectedIndex = 0; trigger.Text = "0"; triggerMode.SelectedIndex = 0; oscillo.TriggerVoltage = (float.Parse(trigger.Text)); }
public void Constructor () { ToolStripComboBox tsi = new ToolStripComboBox (); //Assert.AreEqual ("System.Windows.Forms.AutoCompleteStringCollection", tsi.AutoCompleteCustomSource.GetType ().ToString (), "A1"); //Assert.AreEqual (AutoCompleteMode.None, tsi.AutoCompleteMode, "A2"); //Assert.AreEqual (AutoCompleteSource.None, tsi.AutoCompleteSource, "A3"); Assert.AreEqual ("System.Windows.Forms.ToolStripComboBox+ToolStripComboBoxControl", tsi.ComboBox.GetType ().ToString (), "A4"); //Assert.AreEqual (106, tsi.DropDownHeight, "A5"); Assert.AreEqual (ComboBoxStyle.DropDown, tsi.DropDownStyle, "A6"); Assert.AreEqual (121, tsi.DropDownWidth, "A7"); Assert.AreEqual (false, tsi.DroppedDown, "A8"); Assert.AreEqual (FlatStyle.Popup, tsi.FlatStyle, "A9"); Assert.AreEqual (true, tsi.IntegralHeight, "A10"); Assert.AreEqual ("System.Windows.Forms.ComboBox+ObjectCollection", tsi.Items.ToString (), "A11"); Assert.AreEqual (8, tsi.MaxDropDownItems, "A12"); Assert.AreEqual (0, tsi.MaxLength, "A13"); Assert.AreEqual (-1, tsi.SelectedIndex, "A14"); Assert.AreEqual (null, tsi.SelectedItem, "A15"); Assert.AreEqual (string.Empty, tsi.SelectedText, "A16"); Assert.AreEqual (0, tsi.SelectionLength, "A17"); Assert.AreEqual (0, tsi.SelectionStart, "A18"); Assert.AreEqual (false, tsi.Sorted, "A19"); tsi = new ToolStripComboBox ("Bob"); Assert.AreEqual ("Bob", tsi.Name, "A20"); Assert.AreEqual (string.Empty, tsi.Control.Name, "A21"); }
static void ApplyTheme(ToolStripComboBox c) { c.Font = new Font("Candara", 9.0f); c.BackColor = Color.Lavender; c.ForeColor = Color.DarkMagenta; c.FlatStyle = FlatStyle.System; }
public ParallaxToolStrip(SerialParallax osc, GraphControl gc) { oscillo = osc; graphControl = gc; // // toolStrip2 // this.toolStrip = new System.Windows.Forms.ToolStrip(); this.toolStrip.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip.Location = new System.Drawing.Point(3, 0); this.toolStrip.Name = "toolStrip2"; this.toolStrip.Size = new System.Drawing.Size(243, 25); this.toolStrip.TabIndex = 1; this.toolStrip.Text = "toolStrip2"; this.triggerLabel = new System.Windows.Forms.ToolStripLabel(); this.trigger = new System.Windows.Forms.ToolStripTextBox(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.triggerMode = new System.Windows.Forms.ToolStripComboBox(); // // triggerLabel // this.triggerLabel.Name = "triggerLabel"; this.triggerLabel.Size = new System.Drawing.Size(42, 22); this.triggerLabel.Text = "trigger"; this.toolStrip.Items.Add(this.triggerLabel); // // trigger // this.trigger.Name = "trigger"; this.trigger.Size = new System.Drawing.Size(50, 25); this.trigger.Text = "0"; this.trigger.Validating += new System.ComponentModel.CancelEventHandler(this.trigger_Validating); this.trigger.Validated += new System.EventHandler(this.trigger_Validated); this.toolStrip.Items.Add(this.trigger); // // triggerMode // this.triggerMode.Items.AddRange(new object[] { "ch1 ˄", "ch1 ˅", "ch2 ˄", "ch2 ˅", "ext ˄"}); this.triggerMode.Name = "triggerMode"; this.triggerMode.Size = new System.Drawing.Size(20, 25); this.triggerMode.SelectedIndexChanged += new System.EventHandler(this.triggerMode_SelectedIndexChanged); triggerMode.SelectedIndex = 0; this.toolStrip.Items.Add(this.triggerMode); //channels.SelectedIndex = 0; trigger.Text = "0"; triggerMode.SelectedIndex = 0; oscillo.TriggerVoltage = (float.Parse(trigger.Text)); }
/// <summary> /// Reloads all xml queries /// </summary> /// <param name="cbx">combobox to fill</param> /// <param name="extension">file extention</param> public static void ReloadQueries(ToolStripComboBox cbx, string extension = "*.xml") { cbx.Items.Clear(); foreach (var file in new DirectoryInfo(DirectoryPath).GetFiles(extension)) { cbx.Items.Add(file.Name.Replace(extension, "")); } }
protected string getToolStripComboValues(ToolStripComboBox tcmb) { string[] items = new String[tcmb.Items.Count]; for (int i = 0; i < tcmb.Items.Count; i++) { items[i] = (string)tcmb.Items[i]; } return CommonLang.ArrayHelper<string>.join(items, ";"); }
public ClassEditSearchHandler(frmClassEdit form) { _form = form; cboSearchType = _form.SearchTypeComboBox; cboSearch = _form.SearchTextComboBox; cboSearch.Text = Config.ClassEditorLastSearch; InitSearchTypes(); }
//获取本地磁盘目录 public void listFolders(ToolStripComboBox tscb) { string[] logicdrives = System.IO.Directory.GetLogicalDrives(); for (int i = 0; i < logicdrives.Length; i++) { tscb.Items.Add(logicdrives[i]); tscb.SelectedIndex = 0; } }
public ProjectManager(DockPanel panel, ToolStripComboBox[] comboBoxes, List<ToolStripButton> buttons, TrackBar trackBar, string path) { Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger); LayoutManager = new LayoutManager(panel, comboBoxes, buttons, trackBar); if (!Directory.Exists(path)) Directory.CreateDirectory(path); DockConfigPath = Path.Combine(path, Settings.Default.DockingConfigurationPath); }
///// <summary> ///// ///// </summary> ///// <param name="sender"></param> ///// <param name="e"></param> //protected virtual void newItem_SelectedIndexChanged(object sender, EventArgs e) //{ // System.Windows.Forms.ToolStripComboBox selectitem = sender as System.Windows.Forms.ToolStripComboBox; // ToolsComboBoxItem item = selectitem.SelectedItem as ToolsComboBoxItem; // item.UIElement.Executive(); //} /// <summary> /// 下拉框关闭的时候触发 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void comboBox1_DropDownClosed(object sender, EventArgs e) { System.Windows.Forms.ToolStripComboBox selectitem = sender as System.Windows.Forms.ToolStripComboBox; ToolsComboBoxItem item = selectitem.SelectedItem as ToolsComboBoxItem; if (item != null) { item.UIElement.Executive(); } else { } }
public static string[] GetReferenceAssemblies(ToolStripComboBox comboBox) { string[] refassemblies = new string[comboBox.Items.Count]; int i = 0; foreach (string s in comboBox.Items) { refassemblies[i++] = s; } return refassemblies; }
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); // 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 - 3, GlobalClasspaths); mainForm.IgnoredKeys.Add(GlobalClasspaths.ShortcutKeys); 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("&", ""); toolBar.Items.Add(BuildProject); TestMovie = new ToolStripButton(Icons.GreenCheck.Img); TestMovie.Name = "TestMovie"; TestMovie.ToolTipText = TextHelper.GetString("Label.TestMovie").Replace("&", ""); toolBar.Items.Add(TestMovie); ConfigurationSelector = new ToolStripComboBox(); 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 = 85; ConfigurationSelector.Margin = new Padding(1, 0, 0, 0); ConfigurationSelector.FlatStyle = PluginBase.MainForm.Settings.ComboBoxFlatStyle; ConfigurationSelector.Font = PluginBase.Settings.DefaultFont; toolBar.Items.Add(ConfigurationSelector); }
public SledLuaLuaVersionService(ICommandService commandService) { m_luaVerBox = new ToolStripComboBox("Lua Version"); { var ver = new VersionWrapper(LuaVersion.Lua51, "Lua 5.1.4"); m_luaVerBox.Items.Add(ver); m_luaVerBox.Items.Add(new VersionWrapper(LuaVersion.Lua52, "Lua 5.2.3")); m_luaVerBox.SelectedItem = ver; CurrentLuaVersion = ver.Version; } m_luaVerBox.SelectedIndexChanged += LuaVerBoxSelectedIndexChanged; }
// Constructors public TilesetEdit(Tileset tileset, byte[] oldTileset, byte[] graphics, byte format, System.Windows.Forms.ToolStripComboBox name) { this.tileset = tileset; this.oldTileset = oldTileset; this.graphics = graphics; this.format = format; this.name = name; if (name != null) { this.index = (int)name.SelectedIndex; } }
/// <summary>PropertyGridWithControlSelectorの初期化</summary> public PropertyGridWithControlSelector() { // ToolStripにSelector用のComboBoxを追加 selectorComboBox = new ToolStripComboBox(); selectorComboBox.SelectedIndexChanged += Ctrl_SelectedIndexChanged; selectorComboBox.DropDownStyle = ComboBoxStyle.DropDownList; //selectorComboBox.Width = 181; // 変わらない・・・ var ts = this.GetToolStrip(); ts.Items.RemoveAt(2); // 非表示の謎ボタン ts.Items.RemoveAt(3); // プロパティボタン ts.Items.Add(selectorComboBox); }
/// <summary> /// 填充项目combobox /// </summary> /// <param name="tscomb"></param> /// <param name="sql"></param> private void ComFill(ToolStripComboBox tscomb, string sql) { DataSet ds = new DataSet(); User.DataBaseConnect(sql, ds); DataRow dr = ds.Tables[0].NewRow(); //dr[0] = "-所有项目-"; ds.Tables[0].Rows.InsertAt(dr, 0); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { tscomb.ComboBox.Items.Add(ds.Tables[0].Rows[i][0]); } ds.Dispose(); }
public IEnumerable<object> BuildItems(Codon codon, object parameter) { ToolStripComboBox toolbarItem = new ToolStripComboBox(); ComboBox comboBox = toolbarItem.ComboBox; comboBox.Width *= 3; comboBox.DropDownStyle = ComboBoxStyle.DropDown; comboBox.Items.Clear(); foreach (string url in PropertyService.GetList<string>("Browser.URLBoxHistory")) comboBox.Items.Add(url); comboBox.AutoCompleteMode = AutoCompleteMode.Suggest; comboBox.AutoCompleteSource = AutoCompleteSource.HistoryList; ((HtmlViewPane)parameter).SetUrlBox(comboBox); return new[] { toolbarItem }; }
public void BindToolStripDropdownlist(string strTable, ToolStripComboBox tcb, int i) { conn.Open();//打开数据库连接 SqlCommand cmd = new SqlCommand(//创建命令对象 "select * from " + strTable, conn); SqlDataReader sdr = cmd.ExecuteReader();//得到数据读取器 while (sdr.Read()) { tcb.Items.Add(sdr[i].ToString());//添加信息 } conn.Close();//关闭数据库连接 }
public InstrumentListToolStrip() { this.comboBox = new ToolStripComboBox(); this.comboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.comboBox.SelectedIndexChanged += new EventHandler(this.comboBox_SelectedIndexChanged); this.comboBox.AutoSize = false; this.comboBox.Width = 80; this.cbxSeries = new ToolStripComboBox(); this.cbxSeries.DropDownStyle = ComboBoxStyle.DropDownList; this.cbxSeries.SelectedIndexChanged += new EventHandler(this.cbxSeries_SelectedIndexChanged); this.cbxSeries.AutoSize = false; this.cbxSeries.Width = 80; this.Items.Add((ToolStripItem)this.comboBox); this.Items.Add((ToolStripItem)this.cbxSeries); }
public ToolStripConnectionGui() { this.mButtonConnect = new ToolStripSplitButton() { Text = "Connect" }; this.mButtonConnect.ButtonClick += new EventHandler(mButtonConnect_Click); this.mComboBoxPort = new ToolStripComboBox() { ToolTipText = "Port name", Size = new Size(300, 23), DropDownStyle = ComboBoxStyle.DropDownList }; this.mComboBoxPort.SelectedIndexChanged += new EventHandler(mComboBoxPort_SelectedIndexChanged); this.mComboBoxBaudate = new ToolStripComboBox() { ToolTipText = "Baudrate", DropDownStyle = ComboBoxStyle.DropDownList }; this.mComboBoxBaudate.SelectedIndexChanged += new EventHandler(mComboBoxBaudate_SelectedIndexChanged); this.mComboBoxParity = new ToolStripComboBox() { ToolTipText = "Parity", DropDownStyle = ComboBoxStyle.DropDownList }; this.mComboBoxParity.SelectedIndexChanged += new EventHandler(mComboBoxParity_SelectedIndexChanged); this.mComboBoxStopBits = new ToolStripComboBox() { ToolTipText = "Stop bits", DropDownStyle = ComboBoxStyle.DropDownList }; this.mComboBoxStopBits.SelectedIndexChanged += new EventHandler(mComboBoxStopBits_SelectedIndexChanged); this.mMenuItemRtsEnable = new ToolStripMenuItem("RTS"); this.mMenuItemRtsEnable.Click += new EventHandler(mMenuItemRtsEnable_Click); this.mMenuItemDtrEnable = new ToolStripMenuItem("DTR"); this.mMenuItemDtrEnable.Click += new EventHandler(mMenuItemDtrEnable_Click); this.Items.Add(this.mButtonConnect); this.mButtonConnect.DropDownItems.AddRange(new ToolStripItem[] { this.mComboBoxPort, this.mComboBoxBaudate, this.mComboBoxParity, this.mComboBoxStopBits, this.mMenuItemRtsEnable, this.mMenuItemDtrEnable }); this.mWorker = null; }
private void AddSearch() { this.toolStrip1.Items.Add("ģ�����"); ToolStripComboBox cb = new ToolStripComboBox(); cb.Font = new Font("����",11f); cb.SelectedIndexChanged += new EventHandler(cb_SelectedIndexChanged); cb.ToolTipText = "ѡ�������в�ѯģ�������"; this.toolStrip1.Items.Add(cb); ArrayList lists = FT.DAL.Orm.SimpleOrmOperator.QueryListAll(typeof(EntityDefine)); EntityDefine define; for(int i=0;i<lists.Count;i++) { define=lists[i] as EntityDefine; cb.Items.Add(define.ClassCnName); } }
public FilterBranchHelper(ToolStripComboBox toolStripBranches, ToolStripDropDownButton toolStripDropDownButton2, RevisionGrid RevisionGrid) : this() { this._NO_TRANSLATE_toolStripBranches = toolStripBranches; this._NO_TRANSLATE_toolStripDropDownButton2 = toolStripDropDownButton2; this._NO_TRANSLATE_RevisionGrid = RevisionGrid; this._NO_TRANSLATE_toolStripDropDownButton2.DropDownItems.AddRange(new ToolStripItem[] { this.localToolStripMenuItem, this.remoteToolStripMenuItem}); this._NO_TRANSLATE_toolStripBranches.DropDown += this.toolStripBranches_DropDown; this._NO_TRANSLATE_toolStripBranches.TextUpdate += this.toolStripBranches_TextUpdate; this._NO_TRANSLATE_toolStripBranches.Leave += this.toolStripBranches_Leave; this._NO_TRANSLATE_toolStripBranches.KeyUp += this.toolStripBranches_KeyUp; }
/// <summary> /// Loads a search form containing the results of a search query. /// </summary> /// <param name="searchIndexName">The search index control to update when a search result is selected.</param> /// <param name="searchField">The search field control containing the search query text.</param> /// <param name="searchButton">The search button control that invokes the search.</param> /// <param name="names">The data list to search for a specified query in.</param> public Search(System.Windows.Forms.ToolStripComboBox searchIndexName, ToolStripTextBox searchField, ToolStripButton searchButton, IList names) { InitializeComponent(); this.listBox.Enabled = true; this.listBox.Show(); this.listBox.BringToFront(); this.names = names; this.searchIndexName = searchIndexName; this.searchField = searchField; this.searchButton = searchButton; InitializeProperties(); this.function = new Function(LoadSearch); this.function.DynamicInvoke(); this.Location = searchFieldLocation; InitializeTimer(); }
public TextArea() { try { // // toolCboRepText // this.toolCboRepText = new ToolStripComboBox(); this.toolCboRepText.Name = "toolCboRepText"; this.toolCboRepText.Size = new System.Drawing.Size(140, 26); // // TextBox // this._textBox = new Scintilla(); this._textBox.Dock = System.Windows.Forms.DockStyle.Fill; this._textBox.AllowDrop = true; //this._textBox.LineBuffer = ((System.Collections.ArrayList)(resources.GetObject("TextBox.LineBuffer"))); this._textBox.Location = new System.Drawing.Point(4, 28); this._textBox.Name = "TextBox"; this._textBox.Margins.Margin1.AutoToggleMarkerNumber = 0; this._textBox.Margins.Margin1.IsClickable = true; this._textBox.Margins.Margin2.Width = 16; this._textBox.Lexing.LexerLanguageMap["colorfullsql"] = "colorfullsql"; this._textBox.ConfigurationManager.CustomLocation = Application.StartupPath + @"\colorfullsql.xml"; //this._textBox.ConfigurationManager.UseXmlReader = true; this._textBox.ConfigurationManager.Language = "mssql"; this._textBox.ConfigurationManager.Configure(); this._textBox.LineWrapping.VisualFlags = ScintillaNET.LineWrappingVisualFlags.End; this._textBox.Margins.Margin0.Width = 40; this._textBox.Folding.IsEnabled = true; this._textBox.LineWrapping.Mode = ScintillaNET.LineWrappingMode.Word; this._textBox.Indentation.SmartIndentType = SmartIndent.Simple; this._textBox.Caret.HighlightCurrentLine = true; this._textBox.Selection.BackColorUnfocused = System.Drawing.Color.LightYellow; this._textBox.Styles[1].BackColor = System.Drawing.Color.GreenYellow; this._textBox.Visible = true; this._textBox.Enabled = true; //this._textBox.Size = new System.Drawing.Size(530, 206); this._textBox.TabIndex = 0; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void BuildCombox(string[,] arr, System.Windows.Forms.ToolStripComboBox mCmbBox) { try { mCmbBox.Items.Clear(); if (arr != null) { for (int i = 0; i < arr.GetLength(0); i++) { mCmbBox.Items.Add(arr[i, 1]); } mCmbBox.SelectedIndex = 0; } mCmbBox.DropDownStyle = ComboBoxStyle.DropDownList; } catch (Exception ex) { throw new Exception(ex.Message); } }
private void InitializeComponent() { this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kbtnAccept = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.tslStatus = new System.Windows.Forms.ToolStripStatusLabel(); this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.tsMenu = new System.Windows.Forms.ToolStrip(); this.tsbImport = new System.Windows.Forms.ToolStripButton(); this.tsbExport = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.tsbBold = new System.Windows.Forms.ToolStripButton(); this.tsbItalic = new System.Windows.Forms.ToolStripButton(); this.tsbUnderline = new System.Windows.Forms.ToolStripButton(); this.tsbStrikethrough = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.tscmbTextSize = new System.Windows.Forms.ToolStripComboBox(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.tsbProperties = new System.Windows.Forms.ToolStripButton(); this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kptxtTypefaceFilter = new ExtendedControls.ExtendedToolkit.Controls.KryptonPromptTextBox(); this.ktxtSampleText = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); this.klstTypefaces = new ComponentFactory.Krypton.Toolkit.KryptonListBox(); this.panel1 = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); this.statusStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit(); this.kryptonPanel2.SuspendLayout(); this.tsMenu.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit(); this.kryptonPanel3.SuspendLayout(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kbtnAccept); this.kryptonPanel1.Controls.Add(this.kbtnCancel); this.kryptonPanel1.Controls.Add(this.statusStrip1); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.kryptonPanel1.Location = new System.Drawing.Point(0, 742); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1115, 77); this.kryptonPanel1.TabIndex = 0; // // kbtnAccept // this.kbtnAccept.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.kbtnAccept.DialogResult = System.Windows.Forms.DialogResult.OK; this.kbtnAccept.Location = new System.Drawing.Point(863, 16); this.kbtnAccept.Name = "kbtnAccept"; this.kbtnAccept.Size = new System.Drawing.Size(144, 26); this.kbtnAccept.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnAccept.TabIndex = 6; this.kbtnAccept.Values.Text = "&Use Typeface"; // // kbtnCancel // this.kbtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.kbtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.kbtnCancel.Location = new System.Drawing.Point(1013, 16); this.kbtnCancel.Name = "kbtnCancel"; this.kbtnCancel.Size = new System.Drawing.Size(90, 26); this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.TabIndex = 5; this.kbtnCancel.Values.Text = "C&ancel"; // // statusStrip1 // this.statusStrip1.Font = new System.Drawing.Font("Segoe UI", 9F); this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tslStatus }); this.statusStrip1.Location = new System.Drawing.Point(0, 55); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.statusStrip1.Size = new System.Drawing.Size(1115, 22); this.statusStrip1.TabIndex = 0; this.statusStrip1.Text = "statusStrip1"; // // tslStatus // this.tslStatus.Name = "tslStatus"; this.tslStatus.Size = new System.Drawing.Size(1100, 17); this.tslStatus.Spring = true; this.tslStatus.Text = "Ready"; this.tslStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // kryptonPanel2 // this.kryptonPanel2.Controls.Add(this.tsMenu); this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Top; this.kryptonPanel2.Location = new System.Drawing.Point(0, 0); this.kryptonPanel2.Name = "kryptonPanel2"; this.kryptonPanel2.Size = new System.Drawing.Size(1115, 25); this.kryptonPanel2.TabIndex = 1; // // tsMenu // this.tsMenu.Dock = System.Windows.Forms.DockStyle.None; this.tsMenu.Font = new System.Drawing.Font("Segoe UI", 9F); this.tsMenu.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.tsMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbImport, this.tsbExport, this.toolStripSeparator1, this.tsbBold, this.tsbItalic, this.tsbUnderline, this.tsbStrikethrough, this.toolStripSeparator2, this.tscmbTextSize, this.toolStripSeparator3, this.tsbProperties }); this.tsMenu.Location = new System.Drawing.Point(0, 0); this.tsMenu.Name = "tsMenu"; this.tsMenu.Size = new System.Drawing.Size(265, 25); this.tsMenu.TabIndex = 0; this.tsMenu.Text = "toolStrip1"; this.tsMenu.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tsMenu_KeyDown); // // tsbImport // this.tsbImport.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbImport.Image = global::ExtendedControls.Properties.Resources.Open_File_16_x_16; this.tsbImport.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbImport.Name = "tsbImport"; this.tsbImport.Size = new System.Drawing.Size(23, 22); this.tsbImport.Text = "toolStripButton1"; this.tsbImport.Click += new System.EventHandler(this.tsbImport_Click); // // tsbExport // this.tsbExport.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbExport.Image = global::ExtendedControls.Properties.Resources.Export_To_Document; this.tsbExport.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbExport.Name = "tsbExport"; this.tsbExport.Size = new System.Drawing.Size(23, 22); this.tsbExport.Text = "toolStripButton2"; this.tsbExport.Click += new System.EventHandler(this.tsbExport_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // tsbBold // this.tsbBold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbBold.Image = global::ExtendedControls.Properties.Resources.text_bold; this.tsbBold.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbBold.Name = "tsbBold"; this.tsbBold.Size = new System.Drawing.Size(23, 22); this.tsbBold.Text = "toolStripButton3"; this.tsbBold.CheckedChanged += new System.EventHandler(this.tsbBold_CheckedChanged); // // tsbItalic // this.tsbItalic.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbItalic.Image = global::ExtendedControls.Properties.Resources.text_italic; this.tsbItalic.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbItalic.Name = "tsbItalic"; this.tsbItalic.Size = new System.Drawing.Size(23, 22); this.tsbItalic.Text = "toolStripButton4"; this.tsbItalic.CheckedChanged += new System.EventHandler(this.tsbItalic_CheckedChanged); // // tsbUnderline // this.tsbUnderline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbUnderline.Image = global::ExtendedControls.Properties.Resources.text_underline; this.tsbUnderline.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbUnderline.Name = "tsbUnderline"; this.tsbUnderline.Size = new System.Drawing.Size(23, 22); this.tsbUnderline.Text = "toolStripButton5"; this.tsbUnderline.CheckedChanged += new System.EventHandler(this.tsbUnderline_CheckedChanged); // // tsbStrikethrough // this.tsbStrikethrough.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbStrikethrough.Image = global::ExtendedControls.Properties.Resources.text_strikethrough; this.tsbStrikethrough.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbStrikethrough.Name = "tsbStrikethrough"; this.tsbStrikethrough.Size = new System.Drawing.Size(23, 22); this.tsbStrikethrough.Text = "toolStripButton6"; this.tsbStrikethrough.CheckedChanged += new System.EventHandler(this.tsbStrikethrough_CheckedChanged); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // tscmbTextSize // this.tscmbTextSize.AutoSize = false; this.tscmbTextSize.Name = "tscmbTextSize"; this.tscmbTextSize.Size = new System.Drawing.Size(50, 23); this.tscmbTextSize.SelectedIndexChanged += new System.EventHandler(this.tscmbTextSize_SelectedIndexChanged); this.tscmbTextSize.TextChanged += new System.EventHandler(this.tscmbTextSize_TextChanged); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); // // tsbProperties // this.tsbProperties.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.tsbProperties.Image = global::ExtendedControls.Properties.Resources.text_lowercase; this.tsbProperties.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbProperties.Name = "tsbProperties"; this.tsbProperties.Size = new System.Drawing.Size(23, 22); this.tsbProperties.Text = "toolStripButton7"; this.tsbProperties.Click += new System.EventHandler(this.tsbProperties_Click); // // kryptonPanel3 // this.kryptonPanel3.Controls.Add(this.kptxtTypefaceFilter); this.kryptonPanel3.Controls.Add(this.ktxtSampleText); this.kryptonPanel3.Controls.Add(this.klstTypefaces); this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel3.Location = new System.Drawing.Point(0, 25); this.kryptonPanel3.Name = "kryptonPanel3"; this.kryptonPanel3.Size = new System.Drawing.Size(1115, 717); this.kryptonPanel3.TabIndex = 0; // // kptxtTypefaceFilter // this.kptxtTypefaceFilter.DrawPrompt = true; this.kptxtTypefaceFilter.FocusSelect = true; this.kptxtTypefaceFilter.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kptxtTypefaceFilter.Location = new System.Drawing.Point(12, 6); this.kptxtTypefaceFilter.Name = "kptxtTypefaceFilter"; this.kptxtTypefaceFilter.PromptForeColour = System.Drawing.SystemColors.GrayText; this.kptxtTypefaceFilter.PromptText = "Filter typefaces"; this.kptxtTypefaceFilter.PromptTypeface = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kptxtTypefaceFilter.Size = new System.Drawing.Size(333, 29); this.kptxtTypefaceFilter.TabIndex = 2; this.kptxtTypefaceFilter.Click += new System.EventHandler(this.kptxtTypefaceFilter_Click); this.kptxtTypefaceFilter.TextChanged += new System.EventHandler(this.kptxtTypefaceFilter_TextChanged); this.kptxtTypefaceFilter.Enter += new System.EventHandler(this.kptxtTypefaceFilter_Enter); this.kptxtTypefaceFilter.KeyDown += new System.Windows.Forms.KeyEventHandler(this.kptxtTypefaceFilter_KeyDown); // // ktxtSampleText // this.ktxtSampleText.Location = new System.Drawing.Point(351, 6); this.ktxtSampleText.Multiline = true; this.ktxtSampleText.Name = "ktxtSampleText"; this.ktxtSampleText.ReadOnly = true; this.ktxtSampleText.Size = new System.Drawing.Size(752, 702); this.ktxtSampleText.TabIndex = 1; this.ktxtSampleText.Text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ\r\nabcdefghijklmnopqrstuvwxyz\r\n1234567890\r\n\r\n/\\|!?%$&()[" + "]{}<>+-~=*@;:,._\r\n\r\nLorem ipsum dolor sit amet"; this.ktxtSampleText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ktxtSampleText_KeyDown); this.ktxtSampleText.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ktxtSampleText_KeyPress); // // klstTypefaces // this.klstTypefaces.Location = new System.Drawing.Point(12, 41); this.klstTypefaces.Name = "klstTypefaces"; this.klstTypefaces.Size = new System.Drawing.Size(333, 667); this.klstTypefaces.TabIndex = 0; this.klstTypefaces.SelectedIndexChanged += new System.EventHandler(this.klstTypefaces_SelectedIndexChanged); this.klstTypefaces.KeyDown += new System.Windows.Forms.KeyEventHandler(this.klstTypefaces_KeyDown); this.klstTypefaces.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.klstTypefaces_KeyPress); // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel1.Location = new System.Drawing.Point(0, 739); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(1115, 3); this.panel1.TabIndex = 2; // // TypefaceSelector // this.AcceptButton = this.kbtnAccept; this.ClientSize = new System.Drawing.Size(1115, 819); this.Controls.Add(this.panel1); this.Controls.Add(this.kryptonPanel3); this.Controls.Add(this.kryptonPanel2); this.Controls.Add(this.kryptonPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "TypefaceSelector"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Select Typeface"; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TypefaceSelector_KeyDown); this.Resize += new System.EventHandler(this.TypefaceSelector_Resize); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit(); this.kryptonPanel2.ResumeLayout(false); this.kryptonPanel2.PerformLayout(); this.tsMenu.ResumeLayout(false); this.tsMenu.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit(); this.kryptonPanel3.ResumeLayout(false); this.kryptonPanel3.PerformLayout(); this.ResumeLayout(false); }
/// <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() { _toolStrip = new System.Windows.Forms.ToolStrip(); _backButton = new System.Windows.Forms.ToolStripButton(); _forwardButton = new System.Windows.Forms.ToolStripButton(); _refreshButton = new System.Windows.Forms.ToolStripButton(); _stopButton = new System.Windows.Forms.ToolStripButton(); _urlComboBox = new System.Windows.Forms.ToolStripComboBox(); _goButton = new System.Windows.Forms.ToolStripButton(); _tabControl = new System.Windows.Forms.TabControl(); _webBrowserTabPage = new System.Windows.Forms.TabPage(); _webBrowser = new System.Windows.Forms.WebBrowser(); _webServicesTabPage = new System.Windows.Forms.TabPage(); _webServicesView = new AIMS.Libraries.Scripting.ScriptControl.ReferenceDialog.WebServicesView(); _referenceNameLabel = new System.Windows.Forms.Label(); _referenceNameTextBox = new System.Windows.Forms.TextBox(); _addButton = new System.Windows.Forms.Button(); _cancelButton = new System.Windows.Forms.Button(); _namespaceTextBox = new System.Windows.Forms.TextBox(); _namespaceLabel = new System.Windows.Forms.Label(); _label2 = new System.Windows.Forms.Label(); _txtName = new System.Windows.Forms.TextBox(); _toolStrip.SuspendLayout(); _tabControl.SuspendLayout(); _webBrowserTabPage.SuspendLayout(); _webServicesTabPage.SuspendLayout(); this.SuspendLayout(); // // toolStrip // _toolStrip.CanOverflow = false; _toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { _backButton, _forwardButton, _refreshButton, _stopButton, _urlComboBox, _goButton }); _toolStrip.Location = new System.Drawing.Point(0, 0); _toolStrip.Name = "toolStrip"; _toolStrip.Size = new System.Drawing.Size(543, 25); _toolStrip.Stretch = true; _toolStrip.TabIndex = 0; _toolStrip.Text = "toolStrip"; _toolStrip.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.ToolStripPreviewKeyDown); _toolStrip.Enter += new System.EventHandler(this.ToolStripEnter); _toolStrip.Leave += new System.EventHandler(this.ToolStripLeave); // // backButton // _backButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _backButton.Enabled = false; _backButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserBefore; _backButton.ImageTransparentColor = System.Drawing.Color.Magenta; _backButton.Name = "backButton"; _backButton.Size = new System.Drawing.Size(23, 22); _backButton.Text = "Back"; _backButton.Click += new System.EventHandler(this.BackButtonClick); // // forwardButton // _forwardButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _forwardButton.Enabled = false; _forwardButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserAfter; _forwardButton.ImageTransparentColor = System.Drawing.Color.Magenta; _forwardButton.Name = "forwardButton"; _forwardButton.Size = new System.Drawing.Size(23, 22); _forwardButton.Text = "forward"; _forwardButton.Click += new System.EventHandler(this.ForwardButtonClick); // // refreshButton // _refreshButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _refreshButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserRefresh; _refreshButton.ImageTransparentColor = System.Drawing.Color.Magenta; _refreshButton.Name = "refreshButton"; _refreshButton.Size = new System.Drawing.Size(23, 22); _refreshButton.Text = "Refresh"; _refreshButton.Click += new System.EventHandler(this.RefreshButtonClick); // // stopButton // _stopButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _stopButton.Enabled = false; _stopButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_BrowserCancel; _stopButton.ImageTransparentColor = System.Drawing.Color.Magenta; _stopButton.Name = "stopButton"; _stopButton.Size = new System.Drawing.Size(23, 22); _stopButton.Text = "Stop"; _stopButton.ToolTipText = "Stop"; _stopButton.Click += new System.EventHandler(this.StopButtonClick); // // urlComboBox // _urlComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; _urlComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.AllUrl; _urlComboBox.AutoSize = false; _urlComboBox.FlatStyle = System.Windows.Forms.FlatStyle.Standard; _urlComboBox.Name = "urlComboBox"; _urlComboBox.Size = new System.Drawing.Size(361, 21); _urlComboBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.UrlComboBoxKeyDown); _urlComboBox.SelectedIndexChanged += new System.EventHandler(this.UrlComboBoxSelectedIndexChanged); // // goButton // _goButton.Image = global::AIMS.Libraries.Scripting.ScriptControl.Properties.Resources.Icons_16x16_RunProgramIcon; _goButton.ImageTransparentColor = System.Drawing.Color.Magenta; _goButton.Name = "goButton"; _goButton.Size = new System.Drawing.Size(40, 22); _goButton.Text = "Go"; _goButton.Click += new System.EventHandler(this.GoButtonClick); // // tabControl // _tabControl.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))); _tabControl.Controls.Add(_webBrowserTabPage); _tabControl.Controls.Add(_webServicesTabPage); _tabControl.Location = new System.Drawing.Point(0, 28); _tabControl.Name = "tabControl"; _tabControl.SelectedIndex = 0; _tabControl.Size = new System.Drawing.Size(543, 181); _tabControl.TabIndex = 1; // // webBrowserTabPage // _webBrowserTabPage.Controls.Add(_webBrowser); _webBrowserTabPage.Location = new System.Drawing.Point(4, 22); _webBrowserTabPage.Name = "webBrowserTabPage"; _webBrowserTabPage.Padding = new System.Windows.Forms.Padding(3); _webBrowserTabPage.Size = new System.Drawing.Size(535, 155); _webBrowserTabPage.TabIndex = 0; _webBrowserTabPage.Text = "WSDL"; _webBrowserTabPage.UseVisualStyleBackColor = true; // // webBrowser // _webBrowser.Dock = System.Windows.Forms.DockStyle.Fill; _webBrowser.Location = new System.Drawing.Point(3, 3); _webBrowser.MinimumSize = new System.Drawing.Size(20, 20); _webBrowser.Name = "webBrowser"; _webBrowser.Size = new System.Drawing.Size(529, 149); _webBrowser.TabIndex = 0; _webBrowser.TabStop = false; _webBrowser.CanGoForwardChanged += new System.EventHandler(this.WebBrowserCanGoForwardChanged); _webBrowser.CanGoBackChanged += new System.EventHandler(this.WebBrowserCanGoBackChanged); _webBrowser.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.WebBrowserNavigated); _webBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.WebBrowserNavigating); // // webServicesTabPage // _webServicesTabPage.Controls.Add(_webServicesView); _webServicesTabPage.Location = new System.Drawing.Point(4, 22); _webServicesTabPage.Name = "webServicesTabPage"; _webServicesTabPage.Padding = new System.Windows.Forms.Padding(3); _webServicesTabPage.Size = new System.Drawing.Size(535, 155); _webServicesTabPage.TabIndex = 1; _webServicesTabPage.Text = "Available Web Services"; _webServicesTabPage.UseVisualStyleBackColor = true; // // webServicesView // _webServicesView.Dock = System.Windows.Forms.DockStyle.Fill; _webServicesView.Location = new System.Drawing.Point(3, 3); _webServicesView.Name = "webServicesView"; _webServicesView.Size = new System.Drawing.Size(529, 149); _webServicesView.TabIndex = 0; // // referenceNameLabel // _referenceNameLabel.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))); _referenceNameLabel.Location = new System.Drawing.Point(-26, 263); _referenceNameLabel.Name = "referenceNameLabel"; _referenceNameLabel.Size = new System.Drawing.Size(20, 13); _referenceNameLabel.TabIndex = 2; _referenceNameLabel.Text = "&Reference Name:"; _referenceNameLabel.UseCompatibleTextRendering = true; _referenceNameLabel.Visible = false; // // referenceNameTextBox // _referenceNameTextBox.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))); _referenceNameTextBox.Location = new System.Drawing.Point(0, 300); _referenceNameTextBox.Name = "referenceNameTextBox"; _referenceNameTextBox.Size = new System.Drawing.Size(12, 20); _referenceNameTextBox.TabIndex = 4; _referenceNameTextBox.Visible = false; // // addButton // _addButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); _addButton.Enabled = false; _addButton.Location = new System.Drawing.Point(468, 226); _addButton.Name = "addButton"; _addButton.Size = new System.Drawing.Size(73, 21); _addButton.TabIndex = 6; _addButton.Text = "&Add"; _addButton.UseCompatibleTextRendering = true; _addButton.UseVisualStyleBackColor = true; _addButton.Click += new System.EventHandler(this.AddButtonClick); // // cancelButton // _cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); _cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; _cancelButton.Location = new System.Drawing.Point(468, 251); _cancelButton.Name = "cancelButton"; _cancelButton.Size = new System.Drawing.Size(73, 21); _cancelButton.TabIndex = 7; _cancelButton.Text = "Cancel"; _cancelButton.UseCompatibleTextRendering = true; _cancelButton.UseVisualStyleBackColor = true; _cancelButton.Click += new System.EventHandler(this.CancelButtonClick); // // namespaceTextBox // _namespaceTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _namespaceTextBox.Location = new System.Drawing.Point(129, 253); _namespaceTextBox.Name = "namespaceTextBox"; _namespaceTextBox.Size = new System.Drawing.Size(333, 20); _namespaceTextBox.TabIndex = 5; // // namespaceLabel // _namespaceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); _namespaceLabel.Location = new System.Drawing.Point(11, 252); _namespaceLabel.Name = "namespaceLabel"; _namespaceLabel.Size = new System.Drawing.Size(128, 20); _namespaceLabel.TabIndex = 3; _namespaceLabel.Text = "&Namespace:"; _namespaceLabel.UseCompatibleTextRendering = true; // // label2 // _label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); _label2.Location = new System.Drawing.Point(11, 227); _label2.Name = "label2"; _label2.Size = new System.Drawing.Size(128, 20); _label2.TabIndex = 9; _label2.Text = "&File Name:"; _label2.UseCompatibleTextRendering = true; // // txtName // _txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _txtName.Location = new System.Drawing.Point(129, 226); _txtName.Name = "txtName"; _txtName.Size = new System.Drawing.Size(333, 20); _txtName.TabIndex = 3; // // AddWebReferenceDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(543, 285); this.Controls.Add(_txtName); this.Controls.Add(_label2); this.Controls.Add(_cancelButton); this.Controls.Add(_namespaceTextBox); this.Controls.Add(_namespaceLabel); this.Controls.Add(_addButton); this.Controls.Add(_referenceNameTextBox); this.Controls.Add(_referenceNameLabel); this.Controls.Add(_tabControl); this.Controls.Add(_toolStrip); this.MinimumSize = new System.Drawing.Size(300, 200); this.Name = "AddWebReferenceDialog"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Add Web Reference"; this.Resize += new System.EventHandler(this.AddWebReferenceDialogResize); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.AddWebReferenceDialogFormClosing); _toolStrip.ResumeLayout(false); _toolStrip.PerformLayout(); _tabControl.ResumeLayout(false); _webBrowserTabPage.ResumeLayout(false); _webServicesTabPage.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public CommonToolStrip(VizForm vf, Acquirer acq, GraphControl gc, Oscillo os) { vizForm = vf; m_acquirer = acq; graphControl = gc; m_Oscillo = os; this.timeLabel = new System.Windows.Forms.ToolStripLabel(); this.clone = new System.Windows.Forms.ToolStripButton(); this.play = new System.Windows.Forms.ToolStripButton(); this.time = new System.Windows.Forms.ToolStripComboBox(); this.toolStrip.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.timeLabel, this.time, this.clone, this.play }); this.toolStrip.Location = new System.Drawing.Point(0, 0); this.toolStrip.Name = "toolStrip2"; this.toolStrip.Size = new System.Drawing.Size(497, 25); this.toolStrip.TabIndex = 1; this.toolStrip.Text = "toolStrip2"; // // time // this.time.Name = "time"; this.time.Size = new System.Drawing.Size(50, 25); this.time.SelectedIndexChanged += new System.EventHandler(this.time_SelectedIndexChanged); // // clone // this.clone.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.clone.Image = null;// ((System.Drawing.Image)(resources.GetObject("clone.Image"))); this.clone.ImageTransparentColor = System.Drawing.Color.Magenta; this.clone.Name = "clone"; this.clone.Size = new System.Drawing.Size(42, 22); this.clone.Text = "Clone"; this.clone.Click += new System.EventHandler(this.clone_Click); // // play // if (m_acquirer != null) { this.play.CheckOnClick = true; this.play.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.play.Image = global::XOscillo.Properties.Resources.play; this.play.ImageTransparentColor = System.Drawing.Color.Magenta; this.play.Margin = new System.Windows.Forms.Padding(1); this.play.Name = "play"; this.play.Size = new System.Drawing.Size(23, 23); this.play.Text = "toolStripButton2"; this.play.CheckedChanged += new System.EventHandler(this.play_CheckedChanged); this.play.Checked = true; } this.toolStrip.Items.Add(new System.Windows.Forms.ToolStripSeparator()); // // Channels // if (m_Oscillo != null) { for (int i = 0; i < m_Oscillo.GetNumberOfSupportedChannels(); i++) { CheckBox cb = new CheckBox(); cb.Text = "Ch" + i; cb.Tag = i; cb.Appearance = Appearance.Button; cb.CheckStateChanged += ((s, ex) => { m_Oscillo.SetChannel((int)cb.Tag, cb.CheckState == CheckState.Checked); SetAcquirerStatus(); // since the above doesnt fire a CheckStateChanged }); ToolStripControlHost host = new ToolStripControlHost(cb); if (i == 0) { cb.Checked = true; } this.toolStrip.Items.Add(host); } } }
public void InitializeComponent() { this._zoomToExtents = new System.Windows.Forms.ToolStripButton(); this._fixedZoomIn = new System.Windows.Forms.ToolStripButton(); this._fixedZoomOut = new System.Windows.Forms.ToolStripButton(); this._sep1 = new System.Windows.Forms.ToolStripSeparator(); this._zoomToWindow = new System.Windows.Forms.ToolStripButton(); this._pan = new System.Windows.Forms.ToolStripButton(); this._sep2 = new System.Windows.Forms.ToolStripSeparator(); this._zoomPrev = new System.Windows.Forms.ToolStripButton(); this._zoomNext = new System.Windows.Forms.ToolStripButton(); this._sep3 = new System.Windows.Forms.ToolStripSeparator(); this._predefinedScales = new System.Windows.Forms.ToolStripComboBox(); this._sep4 = new System.Windows.Forms.ToolStripSeparator(); this._minZoom = new System.Windows.Forms.ToolStripButton(); this._maxZoom = new System.Windows.Forms.ToolStripButton(); this._maxZoom2 = new System.Windows.Forms.ToolStripButton(); this._lock = new System.Windows.Forms.ToolStripButton(); this.SuspendLayout(); // // _zoomToExtents // this._zoomToExtents.Enabled = false; this._zoomToExtents.Image = global::Gisoft.SharpMap.Properties.Resources.zoom_extent; this._zoomToExtents.Name = "_zoomToExtents"; this._zoomToExtents.Size = new System.Drawing.Size(23, 22); this._zoomToExtents.ToolTipText = "Zoom to the map\'s extent"; this._zoomToExtents.Click += this.OnFixedZoom; // // _fixedZoomIn // this._fixedZoomIn.Enabled = false; this._fixedZoomIn.Image = global::Gisoft.SharpMap.Properties.Resources.zoom_in; this._fixedZoomIn.Name = "_fixedZoomIn"; this._fixedZoomIn.Size = new System.Drawing.Size(23, 22); this._fixedZoomIn.ToolTipText = "Zoom into map"; this._fixedZoomIn.Click += this.OnFixedZoom; // // _fixedZoomOut // this._fixedZoomOut.Enabled = false; this._fixedZoomOut.Image = global::Gisoft.SharpMap.Properties.Resources.zoom_out; this._fixedZoomOut.Name = "_fixedZoomOut"; this._fixedZoomOut.Size = new System.Drawing.Size(23, 22); this._fixedZoomOut.ToolTipText = "Zoom out of map"; this._fixedZoomOut.Click += this.OnFixedZoom; // // _sep1 // this._sep1.Name = "_sep1"; this._sep1.Size = new System.Drawing.Size(6, 6); // // _zoomToWindow // this._zoomToWindow.CheckOnClick = true; this._zoomToWindow.Enabled = false; this._zoomToWindow.Image = global::Gisoft.SharpMap.Properties.Resources.zoom_region; this._zoomToWindow.Name = "_zoomToWindow"; this._zoomToWindow.Size = new System.Drawing.Size(23, 20); this._zoomToWindow.ToolTipText = "Specify viewport by mouse selection"; this._zoomToWindow.CheckOnClick = true; this._zoomToWindow.CheckedChanged += OnCheckedChanged; // // _pan // this._pan.CheckOnClick = true; this._pan.Enabled = false; this._pan.Image = global::Gisoft.SharpMap.Properties.Resources.pan; this._pan.Name = "_pan"; this._pan.Size = new System.Drawing.Size(23, 20); this._pan.ToolTipText = "Drag the map\'s content around and scoll by mouse wheel"; this._pan.CheckOnClick = true; this._pan.CheckedChanged += OnCheckedChanged; // // _sep2 // this._sep2.Name = "_sep2"; this._sep2.Size = new System.Drawing.Size(6, 6); // // _zoomPrev // this._zoomPrev.Enabled = false; this._zoomPrev.Image = global::Gisoft.SharpMap.Properties.Resources.zoom_last; this._zoomPrev.Name = "_zoomPrev"; this._zoomPrev.Size = new System.Drawing.Size(23, 20); this._zoomPrev.ToolTipText = "Zoom to previous viewport"; this._zoomPrev.Click += (sender, args) => _zoomExtentStack.ZoomPrevious(); // // _zoomNext // this._zoomNext.Enabled = false; this._zoomNext.Image = global::Gisoft.SharpMap.Properties.Resources.zoom_next; this._zoomNext.Name = "_zoomNext"; this._zoomNext.Size = new System.Drawing.Size(23, 20); this._zoomNext.ToolTipText = "Restore last viewport"; this._zoomNext.Click += (sender, args) => _zoomExtentStack.ZoomNext(); // // _sep3 // this._sep3.Name = "_sep3"; this._sep3.Size = new System.Drawing.Size(6, 6); // // _predefinedScales // this._predefinedScales.Name = "_predefinedScales"; this._predefinedScales.Size = new System.Drawing.Size(121, 23); this._predefinedScales.SelectedIndexChanged += OnScaleSelected; // // _sep4 // this._sep4.Name = "_sep3"; this._sep4.Size = new System.Drawing.Size(6, 6); // // _minZoom // this._minZoom.Enabled = false; this._minZoom.Text = "min"; this._minZoom.Name = "_minZoom"; this._minZoom.Size = new System.Drawing.Size(23, 20); this._minZoom.ToolTipText = "Set the minimum zoom level"; this._minZoom.CheckOnClick = true; this._minZoom.CheckedChanged += OnCheckedChanged; // // _maxZoom // this._maxZoom.Enabled = false; this._maxZoom.Text = "max"; this._maxZoom.Name = "_maxZoom"; this._maxZoom.Size = new System.Drawing.Size(23, 20); this._maxZoom.ToolTipText = "Set the maximum zoom level"; this._maxZoom.CheckOnClick = true; this._maxZoom.CheckedChanged += OnCheckedChanged; // // _maxZoom2 // this._maxZoom2.Enabled = false; this._maxZoom2.Text = "max box"; this._maxZoom2.Name = "_maxZoom2"; this._maxZoom2.Size = new System.Drawing.Size(23, 20); this._maxZoom2.ToolTipText = "Set the maximum zoom window"; this._maxZoom2.CheckOnClick = true; this._maxZoom2.CheckedChanged += OnCheckedChanged; // // _lock // this._lock.Enabled = false; this._lock.Name = "_lock"; this._lock.Size = new System.Drawing.Size(23, 20); this._lock.ToolTipText = "Lock the viewport"; this._lock.CheckOnClick = true; this._lock.Image = global::Gisoft.SharpMap.Properties.Resources.unlocked; this._lock.CheckedChanged += OnCheckedChanged; // // MapZoomToolStrip // this.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._zoomToExtents, this._fixedZoomIn, this._fixedZoomOut, this._sep1, this._zoomToWindow, this._pan, this._sep2, this._zoomPrev, this._zoomNext, this._sep3, this._predefinedScales, this._sep4, this._minZoom, this._maxZoom, this._lock, }); this.Text = "MapZoomToolStrip"; this.ResumeLayout(false); }
/// <summary> /// Initializes the new instance of ToolStripComboBoxAccessibleObject. /// </summary> /// <param name="ownerItem">The owning ToolStripComboBox.</param> public ToolStripComboBoxAccessibleObject(ToolStripComboBox ownerItem) : base(ownerItem) { this.ownerItem = ownerItem; }
/// <summary> /// /// </summary> public void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StringsControlToolStripEx)); this.toolStripComboBox = new System.Windows.Forms.ToolStripComboBox(); this.toolStripButtonRemove = new System.Windows.Forms.ToolStripSplitButton(); this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); this.deleteAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripButtonAdd = new System.Windows.Forms.ToolStripButton(); this.SuspendLayout(); // // toolStrip1 // this.Dock = System.Windows.Forms.DockStyle.None; this.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripLabel1, this.toolStripComboBox, this.toolStripButtonAdd, this.toolStripButtonRemove }); this.Location = new System.Drawing.Point(124, 180); this.Name = "toolStrip1"; this.Size = new System.Drawing.Size(263, 25); this.TabIndex = 0; this.Text = "toolStrip1"; // // toolStripComboBox1 // this.toolStripComboBox.Name = "toolStripComboBox1"; this.toolStripComboBox.Size = new System.Drawing.Size(121, 25); // // toolStripButton1 // this.toolStripButtonRemove.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonRemove.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.deleteAllToolStripMenuItem }); this.toolStripButtonRemove.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonRemove"))); this.toolStripButtonRemove.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonRemove.Name = "toolStripButton1"; this.toolStripButtonRemove.Size = new System.Drawing.Size(32, 22); this.toolStripButtonRemove.Text = "Delete / Remove"; this.toolStripButtonRemove.ToolTipText = "Delete / Remove"; this.toolStripButtonRemove.DisplayStyle = ToolStripItemDisplayStyle.Image; // // toolStripLabel1 // this.toolStripLabel1.Enabled = true; this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Size = new System.Drawing.Size(44, 22); this.toolStripLabel1.Text = ""; // // deleteAllToolStripMenuItem // this.deleteAllToolStripMenuItem.Name = "deleteAllToolStripMenuItem"; this.deleteAllToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.deleteAllToolStripMenuItem.Text = "Delete All"; // // toolStripButton2 // this.toolStripButtonAdd.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonAdd"))); this.toolStripButtonAdd.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonAdd.Name = "toolStripButtonAdd"; this.toolStripButtonAdd.Size = new System.Drawing.Size(23, 22); this.toolStripButtonAdd.Text = "Add / Assign"; this.toolStripButtonAdd.ToolTipText = "Add / Assign"; this.toolStripButtonAdd.DisplayStyle = ToolStripItemDisplayStyle.Image; // // Form1 // this.ClientSize = new System.Drawing.Size(609, 307); this.Name = "Form1"; this.Text = "Form1"; this.PerformLayout(); this.ResumeLayout(false); }
public void InitializeComponent() { this._zoomToExtents = new System.Windows.Forms.ToolStripButton(); this._fixedZoomIn = new System.Windows.Forms.ToolStripButton(); this._fixedZoomOut = new System.Windows.Forms.ToolStripButton(); this._sep1 = new System.Windows.Forms.ToolStripSeparator(); this._zoomToWindow = new System.Windows.Forms.ToolStripButton(); this._pan = new System.Windows.Forms.ToolStripButton(); this._sep2 = new System.Windows.Forms.ToolStripSeparator(); this._zoomPrev = new System.Windows.Forms.ToolStripButton(); this._zoomNext = new System.Windows.Forms.ToolStripButton(); this._sep3 = new System.Windows.Forms.ToolStripSeparator(); this._predefinedScales = new System.Windows.Forms.ToolStripComboBox(); this.SuspendLayout(); // // _zoomToExtents // this._zoomToExtents.Enabled = false; this._zoomToExtents.Image = global::SharpMap.Properties.Resources.zoom_extent; this._zoomToExtents.Name = "_zoomToExtents"; this._zoomToExtents.Size = new System.Drawing.Size(23, 22); this._zoomToExtents.ToolTipText = "Zoom to the map\'s extent"; this._zoomToExtents.Click += OnFixedZoom; // // _fixedZoomIn // this._fixedZoomIn.Enabled = false; this._fixedZoomIn.Image = global::SharpMap.Properties.Resources.zoom_in; this._fixedZoomIn.Name = "_fixedZoomIn"; this._fixedZoomIn.Size = new System.Drawing.Size(23, 22); this._fixedZoomIn.ToolTipText = "Zoom into map"; this._fixedZoomIn.Click += OnFixedZoom; // // _fixedZoomOut // this._fixedZoomOut.Enabled = false; this._fixedZoomOut.Image = global::SharpMap.Properties.Resources.zoom_out; this._fixedZoomOut.Name = "_fixedZoomOut"; this._fixedZoomOut.Size = new System.Drawing.Size(23, 22); this._fixedZoomOut.ToolTipText = "Zoom into map"; this._fixedZoomOut.Click += OnFixedZoom; // // sep1 // this._sep1.Name = "_sep1"; this._sep1.Size = new System.Drawing.Size(6, 6); // // _zoomToWindow // this._zoomToWindow.CheckOnClick = true; this._zoomToWindow.Enabled = false; this._zoomToWindow.Image = global::SharpMap.Properties.Resources.zoom_region; this._zoomToWindow.Name = "_zoomToWindow"; this._zoomToWindow.Size = new System.Drawing.Size(23, 20); this._zoomToWindow.ToolTipText = "Specify viewport by mouse selection"; this._zoomToWindow.CheckedChanged += OnCheckedChanged; // // _pan // this._pan.CheckOnClick = true; this._pan.Enabled = false; this._pan.Image = global::SharpMap.Properties.Resources.pan; this._pan.Name = "_pan"; this._pan.Size = new System.Drawing.Size(23, 20); this._pan.ToolTipText = "Drag the map\'s content around and scoll by mouse wheel"; this._pan.CheckedChanged += OnCheckedChanged; // // _sep2 // this._sep2.Name = "_sep2"; this._sep2.Size = new System.Drawing.Size(6, 6); // // _zoomPrev // this._zoomPrev.Enabled = false; this._zoomPrev.Image = global::SharpMap.Properties.Resources.zoom_last; this._zoomPrev.Name = "_zoomPrev"; this._zoomPrev.Size = new System.Drawing.Size(23, 22); this._zoomPrev.ToolTipText = "Zoom to previous viewport"; this._zoomPrev.Click += OnFixedZoom; // // _zoomNext // this._zoomNext.Enabled = false; this._zoomNext.Image = global::SharpMap.Properties.Resources.zoom_next; this._zoomNext.Name = "_zoomNext"; this._zoomNext.Size = new System.Drawing.Size(23, 22); this._zoomNext.ToolTipText = "Restore last viewport"; this._zoomNext.Click += OnFixedZoom; // // sep3 // this._sep3.Name = "_sep3"; this._sep3.Size = new System.Drawing.Size(6, 6); // // _predefinedScales // this._predefinedScales.Name = "_predefinedScales"; this._predefinedScales.Size = new System.Drawing.Size(121, 21); // // MapZoomToolStrip // this.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._zoomToExtents, this._fixedZoomIn, this._fixedZoomOut, this._sep1, this._zoomToWindow, this._pan, this._sep2, this._zoomPrev, this._zoomNext, this._sep3, this._predefinedScales }); this.Name = "MapZoomToolStrip"; this.Text = "MapZoomToolStrip"; this.ResumeLayout(false); }