No problem. :-)
On Jun 15, 2011, at 1:11 PM, Edvin Syse wrote:
> Den 15.06.2011 19:00, skrev Greg Brown:
>> Could you possibly use TreeView#getNodeAt() and getNodeIndent() instead of
>> looking at the style values?
>
> Hehe.. yes, that was a lot easier (and skin independent):
>
> Sequence.Tree.Path path = treeView.getNodeAt(y);
> if (path != null) {
> TreeNode node = (TreeNode) Sequence.Tree.get(treeView.getTreeData(), path);
> if (node instanceof TreeBranch) {
> if (x > treeView.getNodeIndent(path.getLength()))
> doubleClicked(node);
> } else {
> doubleClicked(node);
> }
> }
>
> Thank you so much :)
>
> -- Edvin