RE: [gtkmm] Associating data with Treeview or ComboBox items.
- From: Murray Cumming Comneon com
- To: moses gcecisp com, gtkmm-list gnome org
- Subject: RE: [gtkmm] Associating data with Treeview or ComboBox items.
- Date: Wed, 23 Apr 2003 08:48:20 +0200
> From: Moses McKnight [mailto:moses gcecisp com]
> In Mikro$haft Windows you can store data with every item in a
> list or a dropdown
> list box which can be simply a number or a pointer to an
> object. This is quite
> nice since it makes it quite easy to retrieve the object
> associated with each
> list item. The advantage of this over having an array (or
> vector) of object
> pointers with the same order as the list items, is that with
> an array of
> pointers you must reorder the array every time a user
> reorders or sorts the list.
>
> Is there any way to do this with a treeview or combobox?
It's probably possible somehow with a combobox. I can't think of how right
now.
It is definitely possible with a TreeView - just add a column to the model
and don't show it in the view.
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]