Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dialog Resizing
Dialog Resizing [message #467338] Sun, 29 January 2006 09:51 Go to next message
Eclipse UserFriend
Originally posted by: yonitcohen.mercury.com

I have a dialog and in the dialog I have a composite.
I want to resize the dialog and when the dialog is resizing i want to
update the composite sccordignly.
I am using SWT.RESIZE | SWT.MAX for the dialog which is ok.
How do I set the resizing of the composite also?
thanks.
Re: Dialog Resizing [message #467340 is a reply to message #467338] Sun, 29 January 2006 13:43 Go to previous messageGo to next message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
YC,

What layout are you using on your dialog?

- Jeff
Re: Dialog Resizing [message #467351 is a reply to message #467340] Mon, 30 January 2006 07:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yonitcohen.mercury.com

Jeff Myers wrote:
> YC,
>
> What layout are you using on your dialog?
>
> - Jeff
GridLayout - both in the composite and in the dialog. but it seems it
doesn't seems to influnce.
Re: Dialog Resizing [message #467520 is a reply to message #467351] Wed, 01 February 2006 13:34 Go to previous messageGo to next message
Bill Mooney is currently offline Bill MooneyFriend
Messages: 5
Registered: July 2009
Junior Member
Maybe take a look at ExpandableComposite
Re: Dialog Resizing [message #467524 is a reply to message #467351] Wed, 01 February 2006 14:58 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
Ensure that the layout on the dialog maximizes the composite in both the vertical and horizontal directions:

data.grabHorizontalSpace = true;
data.grabVerticalSpace = true;
data.horizontalAlignment = SWT.FILL;
data.verticalAlignment = SWT.FILL;


Alternatively, you can just use FillLayout.
Previous Topic:Long running wizard process
Next Topic:StyledText setCaretOffset not working?
Goto Forum:
  


Current Time: Wed Oct 16 17:14:20 GMT 2019

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

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

Back to the top