Skip to main content



      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 17:04 Go to next message
Eclipse UserFriend
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 01:33 Go to previous messageGo to next message
Eclipse UserFriend
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 10:43 Go to previous message
Eclipse UserFriend
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: Sun Aug 31 04:48:50 EDT 2025

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

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

Back to the top