RE: [gtkmm] Multiple Selection (fwd)
- From: "Michael R. Fox" <mrf4u cs virginia edu>
- To: gtkmm-list gnome org
- Subject: RE: [gtkmm] Multiple Selection (fwd)
- Date: Fri, 23 Aug 2002 21:10:30 -0400 (EDT)
I would appreciate anyone's help on this matter.
Thank you,
Michael Fox.
---------- Forwarded message ----------
Date: Fri, 23 Aug 2002 13:32:07 -0600
From: "Garriss, Michael" <Michael Garriss abacus-direct com>
To: 'Michael R. Fox' <mrf4u cs virginia edu>
Subject: RE: [gtkmm] Multiple Selection
Not too sure. I'm a bit of a gtkmm "newbie" also. I'd repost your question
to the list if you still need help.
I get many "Gtk-CRITICAL" messages in my application and it works fine
so.....
-----Original Message-----
From: Michael R. Fox [mailto:mrf4u cs virginia edu]
Sent: Friday, August 23, 2002 11:51 AM
To: Garriss, Michael
Subject: RE: [gtkmm] Multiple Selection
Hi. Thanks, that did help. I allow the user to push a button which calls
a function that contains all the selection code. When the user pushes the
button, this gets outputed:
(mrmgui:16041): Gtk-CRITICAL **: file gtktreeselection.c: line 360
(gtk_tree_selection_get_selected): assertion `selection->type !=
GTK_SELECTION_MULTIPLE' failed
Can you explain this?
Thanks,
Michael
On Fri, 23 Aug 2002, Garriss, Michael wrote:
> // To set up a tree view for multiple selections:
> Gtk::tree_view * tv = manage( new Gtk::tree_view( ) );
> // create the tree model and set it here...
> tv->get_selection( )->set_mode( Gtk::SELECTION_MULTIPLE );
>
> // After a user has made multiple selections you can iterate through them
by
> Gtk::TreeModel::iterator iter = tv->get_selection( )->get_selected(
> );
> while( iter )
> {
> // note that "column.some_column" is of type
> TreeModelColumn<ColumnType>
> my_container.push_back( iter->get_value( column.some_column
> ) );
> ++iter;
> }
>
> Hope that helps,
> Michael Garriss
>
> -----Original Message-----
> From: Michael R. Fox [mailto:mrf4u cs virginia edu]
> Sent: Thursday, August 22, 2002 6:55 PM
> To: gtkmm-list gnome org
> Subject: [gtkmm] Multiple Selection
>
>
> How can I allow a user to select several different rows that contain
> values and then have each of those values stored in separate variables?
>
> Is this possible?
>
> Thanks,
> Michael.
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]