|Re: How to wrap the description on the first page of wizard [message #1128165 is a reply to message #1128130]
||Mon, 07 October 2013 12:08
| Thorsten Schlathölter
Registered: February 2012
I'd say it is not possible to achieve this with the standard WizardDialog as it extends TitleAreaDialog which creates a Label for the Title and a Text for the message:
You can just check the respective code of TitleAreaDialog:
titleLabel = new Label(parent, SWT.LEFT);
messageLabel = new Text(parent, SWT.WRAP | SWT.READ_ONLY);
That's why the message is wrapped whereas the title is not.
You might want to override the getInitialSize() method of TitleAreaDialog and introduce a MAX_DIALOG_WIDTH. But that would then be a hardcoded approach which you want to avoid.
After all you might be better off thinking about a shorter title.
[Updated on: Mon, 07 October 2013 12:08]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02262 seconds