Re: How to make a simple selector item



On 2/24/07, Robert Pearce <rob bdt-home demon co uk> wrote:
In several of the dialogs in one of my apps, I want to present the user
with a list of items from which (s)he can select several. In 'doze this
is called a listbox, and it's a very common element. But Gtk seems to be
missing it. Instead I am faced with customising a TreeView - outrageous
overkill and, frankly, a pain in the butt. According to the Gtkmm
documentation, there is a ListViewText class, which simplifies things a
bit. However, it does not exist in my installation (Gentoo, fully
updated).

So, the question is, does Gtkmm have a nice simple way to put a single
column of plain text entries for the user to select from, or do I really
have to create a ListModel, wrap it in a TreeView, and wrap that in a
scroll box?
--
Rob Pearce                       http://www.bdt-home.demon.co.uk

The contents of this | Windows NT crashed.
message are purely   | I am the Blue Screen of Death.
my opinion. Don't    | No one hears your screams.
believe a word.      |
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


Robert,

I think you want to use Gtk::ComboBoxText for this.

HTH,
Paul Davis



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]