[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: How to resize widgets?

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