Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Specific MenuItem Addition
Specific MenuItem Addition [message #438460] Thu, 24 June 2004 20:38 Go to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
Is there a way to add a MenuItem to a Menu at a specific point (not at
the end)? Thanks

Daniel
Re: Specific MenuItem Addition [message #438483 is a reply to message #438460] Fri, 25 June 2004 15:18 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Use the constructor MenuItem(Menu, int, int). The last argument is the
index for the new item.

"Daniel Spiewak" <djspiewak@hotpop.com> wrote in message
news:cbfe6r$cj2$2@eclipse.org...
> Is there a way to add a MenuItem to a Menu at a specific point (not at
> the end)? Thanks
>
> Daniel
Re: Specific MenuItem Addition [message #438509 is a reply to message #438483] Sun, 27 June 2004 02:14 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks, I didn't see that one.<br>
<br>
Daniel<br>
<br>
Steve Northover wrote:
<blockquote cite="midcbhfn3$qv7$1@eclipse.org" type="cite">
<pre wrap="">Use the constructor MenuItem(Menu, int, int). The last argument is the
index for the new item.

"Daniel Spiewak" &lt;<a class="moz-txt-link-abbreviated" href="mailto:djspiewak@hotpop.com">djspiewak@hotpop.com</a>&gt; wrote in message
<a class="moz-txt-link-freetext" href="news:cbfe6r$cj2$2@eclipse.org">news:cbfe6r$cj2$2@eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Is there a way to add a MenuItem to a Menu at a specific point (not at
the end)? Thanks

Daniel
</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
</body>
</html>
Previous Topic:ElementListSelectionDialog
Next Topic:How to make dialog shell not appear in the Windows taskbar?
Goto Forum:
  


Current Time: Sun May 12 06:21:27 GMT 2024

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

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

Back to the top