[R-gui] gtree question

Antje niederlein-rstat at yahoo.de
Mon Aug 18 10:23:42 CEST 2008


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



More information about the R-SIG-GUI mailing list