Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to set the minimum size to a scrolled composite??
How to set the minimum size to a scrolled composite?? [message #444491] Wed, 13 October 2004 19:40 Go to next message
andrea is currently offline andreaFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

IŽve developed a scrolled composite but IŽd like to set the minimun
size (width). How can I do this? This behaviour is seen inside from
Eclipse when we increased the Package Explorer. I need to implement this
same behaviour in my plugin...

Best regards,


Andréa
Re: How to set the minimum size to a scrolled composite?? [message #444501 is a reply to message #444491] Thu, 14 October 2004 12:47 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The minimum size is determined by the layout that contains the
ScrolledComposite. If you are using a Sash (the way PackageExplorer is
resized inside Eclipse), have a look at the following example:

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

If you are uisng a GridLayout, you can set the GridData.widthHint for the
ScrolledComposite.

""Andr
Previous Topic:swt-win32-3062.dll not found
Next Topic:OleEventSink
Goto Forum:
  


Current Time: Fri Apr 19 16:40:39 GMT 2024

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

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

Back to the top