Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » UI layout help
UI layout help [message #452601] Wed, 23 March 2005 02:07 Go to next message
Eclipse UserFriend
Originally posted by: tesserfamily.yahoo.com

I am new to swt and am having trouble makeing a ui. I am trying to make a
shell that has 2 sides, one with a list and a slider underneath it and the
other side has a tree that is manipulated by the slider. OK I can do al
that. My problem is I want the left side with the list to be movable by
the user. In swing I think you can do this with a spilt pane and allow to
user to make the left side narrower or wider as they would like so it
operates like a frame that can be resized by the user.

How do I do that> Current I have the shell with a form layout and 2
groups with a grid layout with the controls inside the groups.

Thank you. i have searche dthe java doc and articles and still haven't
been able to figure this out.
Re: UI layout help [message #452614 is a reply to message #452601] Wed, 23 March 2005 13:57 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Jason,

I think that SashForm (or at least Sash) is your friend here, see the
following example snippets:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet109.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet54.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet107.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

Grant

"Jason Tesser" <tesserfamily@yahoo.com> wrote in message
news:5a4bff050fd52f26857b6ebe0c9248be$1@www.eclipse.org...
> I am new to swt and am having trouble makeing a ui. I am trying to make a
> shell that has 2 sides, one with a list and a slider underneath it and the
> other side has a tree that is manipulated by the slider. OK I can do al
> that. My problem is I want the left side with the list to be movable by
> the user. In swing I think you can do this with a spilt pane and allow to
> user to make the left side narrower or wider as they would like so it
> operates like a frame that can be resized by the user.
>
> How do I do that> Current I have the shell with a form layout and 2
> groups with a grid layout with the controls inside the groups.
>
> Thank you. i have searche dthe java doc and articles and still haven't
> been able to figure this out.
>
Previous Topic:Select text by position
Next Topic:Tooltips for Table cells
Goto Forum:
  


Current Time: Fri Apr 26 21:41:53 GMT 2024

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

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

Back to the top