shell = new Shell(SWT.DIALOG_TRIM | SWT.MIN);
De esta forma bloqueamos el redimensionamiento de una ventana(shell) en SWT. Sería el equivalente en swing de
frame.setResizable(false);
Escribimos en el constructor del shell las propiedades y listo.
Si queremos añadir más restricciones a la ventana podemos concatenar cualesquiera de esta lista:
SWT.BORDER SWT.CLOSE SWT.MIN SWT.MAX SWT.RESIZE SWT.TITLE SWT.NO_TRIM SWT.SHELL_TRIM SWT.DIALOG_TRIM SWT.MODELESS SWT.PRIMARY_MODAL SWT.APPLICATION_MODAL SWT.SYSTEM_MODAL
No hay comentarios:
Publicar un comentario