Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Width and height of a Scout Dialog
Width and height of a Scout Dialog [message #1614322] Fri, 13 February 2015 06:57 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1250
Registered: October 2011
Senior Member
Can I influence the width and the height of a Scout Form opened as a Dialog?

I would like to set the size and/or to have a dialog maximized (like windows do it on double click in the title bar).

I am using the SWT UI.
Re: Width and height of a Scout Dialog [message #1618897 is a reply to message #1614322] Mon, 16 February 2015 07:42 Go to previous message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 571
Registered: October 2012
Location: Bern, Switzerland
Senior Member
In your ApplicationWorkbenchWindowAdvisor.preOpenWindow() method you can call configurer.setInitialsize(new Point(width, height) (I haven't actually played around with different values, so don't know if they have any effect).
In your ApplicationWorkbenchWindowAdvisor.postWindowOpen() method you can call getWindowConfigurer().getWindow().getShell().setMaximized(true) (this we are using and I can confirm it works).
Previous Topic:Master Field not firing in mobile clients
Next Topic:Add a page in extension to outline in parent?
Goto Forum:

Current Time: Wed Jul 18 10:44:08 GMT 2018

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

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

Back to the top