Exemple #1
0
 protected virtual void OnComboBoxCreated(ToolBarComboBoxButtonEventArgs e)
 {
     ToolBarComboBoxButtonEventHandler handler = (ToolBarComboBoxButtonEventHandler) base.Events[ComboBoxCreatedEvent];
     if (handler != null)
     {
         handler(this, e);
     }
 }
Exemple #2
0
 private void OnToolBarComboBoxCreated(object sender, ToolBarComboBoxButtonEventArgs e)
 {
     ComboBox comboBox = e.Button.ComboBox;
     comboBox.SelectedIndex = 0;
     comboBox.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedZoom);
     comboBox.Enabled = false;
 }
Exemple #3
0
 private void OnToolBarComboBoxCreated(object sender, ToolBarComboBoxButtonEventArgs e)
 {
     ToolBarComboBox comboBox = e.Button.ComboBox;
     comboBox.GotFocus += new EventHandler(this.OnToolBarComboBoxGotFocus);
     comboBox.LostFocus += new EventHandler(this.OnToolBarComboBoxLostFocus);
     comboBox.DropDown += new EventHandler(this.OnToolBarComboBoxDropDown);
     comboBox.CloseDropDown += new EventHandler(this.OnToolBarComboBoxCloseDropDown);
     comboBox.SelectedIndexChanged += new EventHandler(this.OnToolBarComboBoxSelectedIndexChanged);
     if (comboBox.DropDownStyle == ComboBoxStyle.DropDown)
     {
         comboBox.TextBoxKeyPress += new KeyPressEventHandler(this.OnToolBarComboBoxKeyPress);
     }
     comboBox.Command = (ToolBarComboBoxCommand) e.Button.Command;
     ((ICommandManager) this).UpdateCommands(false);
 }