| Resize a Dialog Does not work?? [message #457154] |
Mon, 20 June 2005 05:27  |
Eclipse User |
|
|
|
Originally posted by: jerome.bourgeon.bull.net
Hi everybody,
Maybe i'm doing something wrong, I would like to resize a Dialog box i
created , but it doesn't work.
My other problem is i can't fix a size to my Text element.
Thx a lot
Jérôme
PS: here my code
for creating my Dialog
Shell parentshell = new Shell();//fWindow.getShell();
parentshell.setSize(300,200);
AddServerDialog dialog = new AddServerDialog(parentshell);
parentshell.pack();
dialog.open();
In my Dialog class
public Control createDialogArea(Composite parent){
dialog = (Composite) super.createDialogArea(parent);
FormLayout fl = new FormLayout();
fl.marginWidth = 3;
fl.marginHeight = 3;
dialog.setLayout(fl);
FormData data1 = new FormData();
data1.left = new FormAttachment(0,0);
data1.top = new FormAttachment(0,0);
data1.right = new FormAttachment(100,0);
Composite compoInfo = createInformations();
compoInfo.setLayoutData(data1);
return dialog;
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04640 seconds