Re: clearing text from a combo box?
- From: Murray Cumming <murrayc murrayc com>
- To: Jamiil <arbolone gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: clearing text from a combo box?
- Date: Tue, 17 Jun 2008 08:39:31 +0200
On Mon, 2008-06-16 at 16:19 -0400, Jamiil wrote:
> I have combo boxes and entry boxes that I want to clear up when the user
> clicks on the 'Clear' button. I looked into the Gtk::ComboBox widget,
> but I am unable to find the right method.
> Any body?
You can call set_active() with -1, as in the C API:
http://library.gnome.org/devel/gtk/unstable/GtkComboBox.html#gtk-combo-box-set-active
I think we need to add a unset_active() method to make that clearer.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]