Skip to main content



      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 15:40 Go to next message
Eclipse UserFriend
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 08:47 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 16:02:33 EDT 2025

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

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

Back to the top