Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Simulate user window resize with GridLayout?
Simulate user window resize with GridLayout? [message #533432] Thu, 13 May 2010 21:04 Go to next message
Misha Koshelev is currently offline Misha KoshelevFriend
Messages: 31
Registered: May 2010
Member
Dear All:

Was wondering if there was a way, instead of calling
shell.pack()

to cause a layout manager to reposition the Widgets inside a shell _as if_ the user had resized/positioned the window at a certain x,y,width,height

I cannot find such a method

Any help much appreciated

Thank you!
Misha
Re: Simulate user window resize with GridLayout? [message #533788 is a reply to message #533432] Mon, 17 May 2010 05:33 Go to previous messageGo to next message
Praveen  is currently offline Praveen Friend
Messages: 86
Registered: July 2009
Member
Misha Koshelev wrote:
> to cause a layout manager to reposition the Widgets inside a shell _as
> if_ the user had resized/positioned the window at a certain
> x,y,width,height

I think you are looking for shell.layout(...) method which requests the
layout manager to re-position and sets the size of the children. You can
have a look at various Composite.layout methods that accept different
arguments.

Regards,
Praveen.
Re: Simulate user window resize with GridLayout? [message #533954 is a reply to message #533788] Mon, 17 May 2010 14:43 Go to previous message
Misha Koshelev is currently offline Misha KoshelevFriend
Messages: 31
Registered: May 2010
Member
Thank you. This looks appropriate.

Misha
Previous Topic:Updating images in view in background
Next Topic:Untyped events for Browser widget?
Goto Forum:
  


Current Time: Wed Dec 11 20:20:34 GMT 2019

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

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

Back to the top