Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Initial Size of a Dialog
Initial Size of a Dialog [message #1706219] Tue, 25 August 2015 06:41 Go to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 213
Registered: November 2014
Senior Member

Hello,

is it possible to set the initial size of a form opened as modal dialog?

The attachments show the initial size and the desired size of the dialog. Can I somehow set the size to the desired size as shown?

Peter
Re: Initial Size of a Dialog [message #1706229 is a reply to message #1706219] Tue, 25 August 2015 07:21 Go to previous messageGo to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
I use Swing as a client. To set the initial size of a form I use one of the next methods:

1: Increase the number of columns on the form.
2: Set the width property of the mainbox.

Regards Bertin
Re: Initial Size of a Dialog [message #1706298 is a reply to message #1706229] Tue, 25 August 2015 13:55 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 213
Registered: November 2014
Senior Member

Hi Bertin,

Bertin Kiekebosch wrote on Tue, 25 August 2015 07:21

1: Increase the number of columns on the form.

I dont want to change the number of columns, since this form is used as view somewhere else. And there its fine.

Bertin Kiekebosch wrote on Tue, 25 August 2015 07:21

2: Set the width property of the mainbox.


Which method are you calling? I can't find a setWidth() on the mainbox...

Thanks, Peter
Re: Initial Size of a Dialog [message #1706307 is a reply to message #1706298] Tue, 25 August 2015 14:52 Go to previous messageGo to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
MainBox -> Advanced Properties -> Layout -> Width in Pixel (getConfiguredWidthInPixel())
MainBox -> Advanced Properties -> Layout -> Height in Pixel (getConfiguredHeightInPixel())
Re: Initial Size of a Dialog [message #1706347 is a reply to message #1706307] Wed, 26 August 2015 07:36 Go to previous messageGo to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Indeed, I'm not using a runtime method but use the Scout Object Properties editor at design time.
Re: Initial Size of a Dialog [message #1706774 is a reply to message #1706347] Mon, 31 August 2015 04:52 Go to previous message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 213
Registered: November 2014
Senior Member

HI, it worked. Thanks. Peter
Previous Topic:Active outline at startup
Next Topic:Upgrade to neon
Goto Forum:
  


Current Time: Fri Mar 29 10:06:33 GMT 2024

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

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

Back to the top