Skip to main content



      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 12: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 13:52 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 14:34:25 EDT 2025

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

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

Back to the top