Re: [gtkmm] Treeview and multiple selection



On Thu, Sep 18, 2003 at 10:27:22AM +0200, Karim Bernardet wrote:
> Hello,
> 
> I have problems to use the multiple selection with a treeview. I 
> wondered if anyone had a simple example to give to me.
> 
> Thanks for your help,

Hello!

I don't have an example for you but my understanding of these things
is that you have to do the following:

After you have created your Gtk::TreeView you need to receive its
selection:

Glib::RefPtr<Gtk::TreeSelection> selection;
selection = my_tree_view.get_selection();

Then you need to set up its behaviour:

selection->set_mode(Gtk::SELECTION_MULTIPLE);

You may want to take a look at the gtkmm API reference for details.

Regards.

-- 
Simon Fuhrmann | NightSlayer at gmx.de | http://www.dismember.de
All people talk about the real life, but where can I download it?



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