Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » group composite
group composite [message #463234] Wed, 02 November 2005 01:01 Go to next message
Eclipse User
Originally posted by: osipov.appliedtech.ru

Hi, everybody!
Is there a way to keep the shape of group being square after resizing?
thanks a a lot in advance.
Re: group composite [message #463289 is a reply to message #463234] Wed, 02 November 2005 12:38 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel Spiewak
Messages: 263
Registered: July 2009
Senior Member
Add a SWT.Resize listener and intercept the resize event. Then, you can set the size to whatever you want (square, rectangle, well...that's about it) :-)
Re: group composite [message #463333 is a reply to message #463234] Thu, 03 November 2005 12:44 Go to previous message
Carlos is currently offline Carlos
Messages: 5
Registered: July 2009
Junior Member
Peter Osipov wrote:

> Hi, everybody!
> Is there a way to keep the shape of group being square after resizing?
> thanks a a lot in advance.

If you mean to set a field of Group, GridData or GridLayout that directly
does that, I don't know any.
But you can do it by yourself: you can add a resizeListener and give
appropriate values to the "heightHint" and "widthHint" fields of the
group's GridData (I assume your group is inside a layout) whenever a
resize event occurs.
Previous Topic:TreeItem move
Next Topic:draw arc
Goto Forum:
  


Current Time: Sat Aug 23 07:44:33 EDT 2014

Powered by FUDForum. Page generated in 0.01639 seconds