Re: doubt on usage of combobox
- From: Mikoyan <miko2 pandora be>
- To: john <johnson cyberbabies com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: doubt on usage of combobox
- Date: 09 Sep 2003 11:45:42 +0200
On Tue, 2003-09-09 at 06:56, john wrote:
hi there,
i am making use of a combo box to get input from the user that
contains text options like add,sub,div,mul,etc..
i dont want the user to enter his own option..(ie)he has to pick up an
option from the list that is in a combo box..how to make it like a list box
in vc++..i am a newbie to GTK
plz do help me ..
You can use the next function :
gtk_combo_set_value_in_list(myCombo, TRUE, FALSE);
/* value must be in list, empty values are not ok */
also, the Gtk::Combo widget contains a Gtk::Entry widget. You can
disable "editable".
gtk_entry_set_editable(myCombo->entry, FALSE);
Please take a look for more info at :
http://developer.gnome.org/doc/API/2.0/gtk/GtkCombo.html#gtk-combo-set-value-in-list
http://developer.gnome.org/doc/API/2.0/gtk/GtkEntry.html#gtk-entry-set-editable
You can also consider the usage of GtkOptionMenu...
Hope it helps :-)
thanks in advance
regards
john
_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com
Looking for friendships,romance and more?
http://www.MyOwnFriends.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]