Skip to main content


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 06:01 Go to next message
Eclipse UserFriend
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 17:38 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
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 17:44 Go to previous message
Carlos is currently offline CarlosFriend
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: Thu Apr 25 07:45:01 GMT 2024

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

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

Back to the top