Hi.

I have in my application a qx.ui.tabview.Page which contains a 
qx.ui.tree.Tree. In order to add new items to my tree, I've set a 
context menu for each item, allowing me to add a new item into the 
right-clicked item. Until there everything works fine.

The problem is that the tree root is hidden, so I can't add a context 
menu to it (where would I click to see this menu ?). So in order to be 
able to add items to the tree root, I've set a context menu for my 
qx.ui.tree.Tree object. This works well as long as I do not 
(right-)click on an item of the tree.
But if I click one, it will display the context menu of the item AND the 
context menu of the tree (covering the item menu that becomes unusable). 
I tried to set the context menu on the tabview.Page instead of the Tree 
(since my Page only contains the Tree object), but have the same result.

How should I do to have a context menu that appears only when I click in 
an empty area of the tree ?

Thanks for any help.

-- 
Loïc Bresson


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to