I can't drag menubar to my SWT Application

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

I can't drag menubar to my SWT Application

Postby huwd » Fri Dec 24, 2004 6:30 am

I build a very simple SWT Application.And I want to simply drag a menubar to the top of my shell like I drag a button.But it didn't work,it didn't allow me to drag the menubar to the shell,what's wrong?
huwd
 
Posts: 2
Joined: Fri Dec 24, 2004 6:25 am

Re: I can't drag menubar to my SWT Application

Postby Eric Clayberg » Fri Dec 24, 2004 3:32 pm

huwd wrote:I build a very simple SWT Application.And I want to simply drag a menubar to the top of my shell like I drag a button.But it didn't work,it didn't allow me to drag the menubar to the shell,what's wrong?

Add a layout manager (like a GridLayout or FormLayout) to the window first.

This problem, which is limited to null layouts, has already been fixed for the next update.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby huwd » Sat Dec 25, 2004 3:12 am

it really is a bug!
:wink: I spend a lot time on fixing it!
now I add a GridLayout to the shell,add the menubar and menu and then,delete the layout to return to the null Layout
I prefer null Layout,it feels free!!!
huwd
 
Posts: 2
Joined: Fri Dec 24, 2004 6:25 am

Postby Eric Clayberg » Sat Dec 25, 2004 4:01 pm

huwd wrote:now I add a GridLayout to the shell,add the menubar and menu and then,delete the layout to return to the null Layout
I prefer null Layout,it feels free!!!

If you use the v3.0.1 build, you can add a menubar directly to a null layout.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest