Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » adding a menubar to two a composite
adding a menubar to two a composite [message #482197] Tue, 25 August 2009 16:43 Go to next message
Eclipse UserFriend
Originally posted by: ahmed.elmasri.gmail.com

Wondering if it is possible to add a Menu bar to a Composite object that
holds a table and accesses its columns. Any clue?
Thanks!
Ahmed
Re: adding a menubar to two a composite [message #482224 is a reply to message #482197] Tue, 25 August 2009 17:52 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Menu bars can only be added to Shells, not to other types of controls.
Context menus can be added to any control though, for an example of this see
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet40.java?view=co .

Also note that there are lots of example swt snippets available at
http://www.eclipse.org/swt/snippets/ .

Grant


"Ahmed Abdeen Hamed" <ahmed.elmasri@gmail.com> wrote in message
news:bbecdfb5f7a8027413c733561a1223d9$1@www.eclipse.org...
> Wondering if it is possible to add a Menu bar to a Composite object that
> holds a table and accesses its columns. Any clue?
> Thanks!
> Ahmed
>
Previous Topic:SWT AddressBook example
Next Topic:SWT.SetData in virtual table not working when SWT.MeasureItem is added
Goto Forum:
  


Current Time: Wed Sep 18 00:52:55 GMT 2019

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

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

Back to the top