コード例 #1
0
 public HSimpleComboBox()
 {
     this.Popup = new ComboListWindow(this);
     this.Build();
     this.IsEditable = false;
     this.comboBox.Entry.KeyPressEvent    += new Gtk.KeyPressEventHandler(this.on_entry_key_pressed);
     this.comboBox.Entry.Changed          += new EventHandler(this.OnTextChanged);
     this.comboBox.PopupButton.Clicked    += new EventHandler(this.on_popup_open);
     this.Popup.List.SelectedIndexChanged += new EventHandler(this.on_list_item_changed);
 }
コード例 #2
0
 public HSimpleComboBox()
 {
     this.Popup                              = new ComboListWindow( this );
     this.Build();
     this.IsEditable                         = false;
     this.comboBox.Entry.KeyPressEvent      += new Gtk.KeyPressEventHandler( this.on_entry_key_pressed );
     this.comboBox.Entry.Changed            += new EventHandler( this.OnTextChanged        );
     this.comboBox.PopupButton.Clicked      += new EventHandler( this.on_popup_open        );
     this.Popup.List.SelectedIndexChanged += new EventHandler( this.on_list_item_changed );
 }