Skip to main content



      Home
Home » Eclipse Projects » Technology Project and PMC » SubMenu in PopUp Menu
SubMenu in PopUp Menu [message #593980] Sat, 24 May 2003 19:07
Eclipse UserFriend
Hi,

I want to have submenu in a PopUp Menu.I have created the SWT menu using
the menu class(org.eclipse.swt.widgets.Menu).I tried creating sub menu by
giving parent menu as argument but it doesn't show up.I also tried by giving
menu item as argument still I am not able to get it.I also tried setting
Menu.setVisible(true) but in vain.

How to do solve this problem.

Here is the snippet

//snippet

public RateManagerPocD220503V01PopUp(final Composite parent, final
RateManagerPocD220503V01Book editorBook) {


menu = new Menu(parent.getShell(),SWT.POP_UP);



cut = new MenuItem (menu, SWT.CASCADE);

clearContents = new MenuItem(menu,SWT.CASCADE);

subMenu = new Menu(clearContents);

subMenuItem = new MenuItem(subMenu,SWT.PUSH);


cut.setText("&Cut");

copy.setText("Copy");

clearContents.setText("Clear Contents");

parent.setMenu(menu);



}

//End of Snippet

MorPheus
Previous Topic:GUI won't display
Next Topic:How to convert fully qualified classname to import entry
Goto Forum:
  


Current Time: Thu Mar 27 16:16:59 EDT 2025

Powered by FUDForum. Page generated in 0.02948 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top