Skip to content
Prev 842 / 1236 Next

[R-gui] gtree question

Hello,

I'd like to know how I can get the whole path if I doubleclick on an item of 
the gtree.
So far, I added a handler and printed the selection:

dblClickTree <- function(h,...) {
	print(svalue(h$obj))
}

gtree(offspring, hasOffspring, icon.FUN = icon.FUN, container=g1, expand=TRUE, 
handler = dblClickTree)

But I only get the element I've clicked on but not it's parent elements up to 
the root of the tree.

Can anybody help me to solve this?

Antje