RE: [gtkmm] Multiple Selection (fwd)



[please send GTKmm-related mails to the mailing list as well]

On Sat, 24 Aug 2002, Michael R. Fox wrote:

> I have set the tree to handle multiple selection.  Would someone please
> explain the multiple selection to me.  I seem to not be able to understand
> the example given in the documentation.  I would like to have a user click
> a button and once this button is clicked the program grabs the selected
> rows and places their values into separate variables.

First you need to call set_selection_mode (GTK_SELECTION_MULTIPLE) on the
tree. Then you can get the selected rows by calling selection () which
returns a container with the selected rows.

-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus cactus rulez org =---'
A Microsoft feltalata a program nelkuli hibat!




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