Attach Contextual Menu to Layout cell

Hi,

I’ve a window which has a layout pattern 3E, in first cell I’ve a form, a tree in the second and a toolbar in the last.

My question is : is it possible to attach a contextual menu on a tree, which is attached to a cell’s layout ?

What kind of parameter I’ve to put in this method : contextualMenu.addContextZone(??);

Thanks.

Hi
Here is the simple approach:

dhxTree = dhxLayout.cells("b").attachTree(); menu = new dhtmlXMenuObject(); menu.renderAsContextMenu(); menu.setIconsPath("../dhtmlxMenu/samples/common/imgs/"); menu.loadXML("../___xml/m_context.xml"); dhxTree.setImagePath("../dhtmlxTree_prof/codebase/imgs/csh_bluebooks/"); dhxTree.loadXML("../___xml/tree3.xml"); dhxTree.enableContextMenu(menu);