[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TreeView selection?
From: |
David Pirotte |
Subject: |
Re: TreeView selection? |
Date: |
Fri, 28 Apr 2006 13:52:03 +0200 |
On Fri, 28 Apr 2006 08:31:40 +0100
Neil Jerram <address@hidden> wrote:
> Neil Jerram <address@hidden> writes:
>
> > How can I find out which row of a TreeView is selected?
> >
> > So far I have this:
> >
> > (call-with-values
> > (lambda ()
> > (get-selected (get-selection treeview)))
> > (lambda (model iter)
> > iter))
> >
you may also do the following:
(connect treeview
'changed
(lambda (selection)
(receive (model iter)
(get-selected selection)
(if iter
(let* ((path (get-path model iter))
(row (car path)))
...
)))))
David