Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can not nest more than 23 Menu's.
Can not nest more than 23 Menu's. [message #438700] Wed, 30 June 2004 16:09 Go to next message
Greg Roberts is currently offline Greg RobertsFriend
Messages: 88
Registered: July 2009
Member
I am trying to create a nested menu structure that can contain any number
of potential sub menu's. As it turns out if I add anymore than 23
submenu's I get an SWT error. Is anyone familiar with this problem? Is
this a known bug? I have not been able to find an existing bug for this.

org.eclipse.swt.SWTError: Cannot set menu
at org.eclipse.swt.SWT.error(SWT.java:2651)
at org.eclipse.swt.SWT.error(SWT.java:2555)
at org.eclipse.swt.widgets.Widget.error(Widget.java:354)
at org.eclipse.swt.widgets.MenuItem.setMenu(MenuItem.java:796)
..
..
..


Thank you,

Greg
Re: Can not nest more than 23 Menu's. [message #438709 is a reply to message #438700] Wed, 30 June 2004 17:10 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Seems to be a limitation on Windows. The OS call to SetMenuItemInfo fails
with reason ERROR_MENU_ITEM_NOT_FOUND.

You can enter a bug report against Platform SWT but I think this is just an
OS limitation.

"Greg" <gwrobert@us.ibm.com> wrote in message
news:cbuoki$ppm$1@eclipse.org...
> I am trying to create a nested menu structure that can contain any number
> of potential sub menu's. As it turns out if I add anymore than 23
> submenu's I get an SWT error. Is anyone familiar with this problem? Is
> this a known bug? I have not been able to find an existing bug for this.
>
> org.eclipse.swt.SWTError: Cannot set menu
> at org.eclipse.swt.SWT.error(SWT.java:2651)
> at org.eclipse.swt.SWT.error(SWT.java:2555)
> at org.eclipse.swt.widgets.Widget.error(Widget.java:354)
> at org.eclipse.swt.widgets.MenuItem.setMenu(MenuItem.java:796)
> .
> .
> .
>
>
> Thank you,
>
> Greg
>
Re: Can not nest more than 23 Menu's. [message #438727 is a reply to message #438700] Thu, 01 July 2004 08:11 Go to previous message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
Greg,

In my experience menus of such depth only annoy users. Usually when faced
with such a situation I use one of the eclipse selection dialogs to
display the options in a tree hierarchy.

James

Greg wrote:

> I am trying to create a nested menu structure that can contain any number
> of potential sub menu's. As it turns out if I add anymore than 23
> submenu's I get an SWT error. Is anyone familiar with this problem? Is
> this a known bug? I have not been able to find an existing bug for this.

> org.eclipse.swt.SWTError: Cannot set menu
> at org.eclipse.swt.SWT.error(SWT.java:2651)
> at org.eclipse.swt.SWT.error(SWT.java:2555)
> at org.eclipse.swt.widgets.Widget.error(Widget.java:354)
> at org.eclipse.swt.widgets.MenuItem.setMenu(MenuItem.java:796)
> ..
> ..
> ..


> Thank you,

> Greg
Previous Topic:Syntaxhighlighting is no longer copied to the Clipbord in 3.0
Next Topic:How to dynamically change Controls in a Composite
Goto Forum:
  


Current Time: Tue May 14 02:12:23 GMT 2024

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

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

Back to the top