[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: How to size the width of a wizard when message is very long

Thanks Jeffty.  However it is not working.  I use the below code.

	WizardDialog dlg = new WizardDialog(shell, wizard);
	dlg.setPageSize(500, 400);
	dlg.setMinimumPageSize(400, 300);
	dlg.create();
	dlg.open();

The wizard page is displayed to fit the full width of my message. I wonder if I can set the message outside of the createControl(), then it may work because the wizard has been created and the width is set. Then the message will be wrapped. I know that the message area has space for 2 lines and my message will wrap if I resize the page. My problem is how to set the initial width of the wizard.

Thanks,

Jason


jeffty wrote:

    If you open the WizardDialog manually, you can use like this:
     WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
     dialog.setPageSize(500, 500);
     dialog.setMinimumPageSize(400, 400);


Hi,

I have an org.eclipse.jface.wizard.Wizard wizard that have 2 org.eclipse.jface.wizard.WizardPage pages. One of them have a very long message telling the user what to do on the page. I use the setMessage() in the createControl(...) to set the message. I use org.eclipse.jface.wizard.WizardDialog to launch the wizard.

Because the message is so long, the wizard opens to the full width of my screen when it starts. I don't have much inside the page client area - only a number of buttons. So a 400x300 area is plenty. I have tried to use the setPageSize(...) of the WizardDialog to set the size before opening the wizard, but it didn't work.

Is there a way to workaround the problem?

Thanks in advance,

Jason


Hi,

I have an org.eclipse.jface.wizard.Wizard wizard that have 2 org.eclipse.jface.wizard.WizardPage pages. One of them have a very long message telling the user what to do on the page. I use the setMessage() in the createControl(...) to set the message. I use org.eclipse.jface.wizard.WizardDialog to launch the wizard.

Because the message is so long, the wizard opens to the full width of my screen when it starts. I don't have much inside the page client area - only a number of buttons. So a 400x300 area is plenty. I have tried to use the setPageSize(...) of the WizardDialog to set the size before opening the wizard, but it didn't work.

Is there a way to workaround the problem?

Thanks in advance,

Jason