Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to resize widgets?
How to resize widgets? [message #462454] Wed, 12 October 2005 08:54 Go to next message
Eclipse UserFriend
Originally posted by: abanchi2000.yahoo.com

How can I resize two adjacent widgets by draging an edge of a widget or
the boundary between them?
Re: How to resize widgets? [message #462461 is a reply to message #462454] Wed, 12 October 2005 11:46 Go to previous messageGo to next message
Eclipse UserFriend
There's no native way of doing this because this functionality isn't supported natively by any WS. The only way to do something like this would be to emulate it yourself with some sort of canvas which would trap mouse events and then call the setBounds(Rectangle) method on the widget(s) in question. Alternatively, I think GEF supports something like this, but I'm really not sure. Take a look at VE for an example.
Re: How to resize widgets? [message #462467 is a reply to message #462461] Wed, 12 October 2005 11:51 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Or do you mean a Sash where you have two widgets filling the sash with a
line between the two which can be dragged up or down (left or right) and
have one widget grow bigger while the other grows smaller?

Daniel Spiewak wrote:
> There's no native way of doing this because this functionality isn't supported natively by any WS. The only way to do something like this would be to emulate it yourself with some sort of canvas which would trap mouse events and then call the setBounds(Rectangle) method on the widget(s) in question. Alternatively, I think GEF supports something like this, but I'm really not sure. Take a look at VE for an example.

--
Thanks,
Rich Kulp
Previous Topic:drawing an image over different composites
Next Topic:Tutorial to SWT for Printing
Goto Forum:
  


Current Time: Sat Jul 05 01:05:24 EDT 2025

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

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

Back to the top