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: 1243
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: 566
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: Sun Oct 22 03:14:48 GMT 2017

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

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