Philippe Nobili wrote:
> 
> We have added contextual menus bound to mouse-button-3 on some elements 
> ('grp' in our case). For all other elements, we revert to the default 
> editMenu.
> 
> The contextual menu is defined with a label explaining the menu's 
> purpose briefly:
> 
> <cfg:command name="contextualMenuGrp">
> 
> <cfg:menu label="Add Child">
> <cfg:separator/>
> <cfg:item label="Group or Procedure"
>          command="insert" parameter="into 
> {http://www.cggveritas.com/geovation/module/2.0}grp"; />
> <cfg:item label="Optional Procedure"
>          command="insert" parameter="into 
> {http://www.cggveritas.com/geovation/module/2.0}opt"; />
> 
> <cfg:menu label="Parameter">
> <cfg:item label="Attribute"
>                            command="insert" parameter="into 
> {http://www.cggveritas.com/geovation/module/2.0}attribute"; />
> 
> The rest is skipped; this works fine, apart the fact  that the top-menu 
> label is not displayed (the separator is displayed and so are the 
> sub-menus labels).
> 
> Is there something wrong in our code ? or did we misunderstood the 
> documentation ?

Most Java Look & Feels does not allow a popup menu to have a label (that
is, submenus may have labels, but not the top-level popup menu), that's
why the label "Add Child" you have specified is not displayed.


 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to