custom or generated?
21 Feb 2003 10:35:23 -0800
On Fri, 2003-02-21 at 14:52, Lee Mallabone wrote:
> On Thu, 2003-02-20 at 23:52, George Farris wrote:
> > Well I'm stumped at the moment. I guess I'll leave multiple selection
> > and move on, maybe someone with more programming knowledge than me will
> > figure it out.
> For what it's worth, I've got SelectedForeach to be useful in the following way...
> Create your own GetAllSelected() function in a convenient place, (my class encapsulates a scrolled window and TreeView).
> Have a member variable in your class that's an ArrayList called 'rows'.
> Your GetAllSelected does something like:
> public IList GetAllSelected()
> TreeSelection selectionInfo = widget.Selection;
> rows = new ArrayList();
> selectionInfo.SelectedForeach(new TreeSelectionForeachFunc(recordRow));
> Console.WriteLine("got " + rows.Count + " rows");
> return rows;
Ah I see, I tried SelectedForeach but I did the following and it
One would think you would be able to do this without the
"new TreeSelectionForeachFunc" call.
The other problem I had was that when Multiple selections were enabled
the "Changed" signal that called GetSelected(out model, ref iter) died
because GetSelected does work with Multiple selections.