1) Layouts often cache expensive computations
for the widget that is described by the layout data. This means that
sharing layout data won't work.
2) SYSTEM_MODAL is supposed to lock
out the entire workstation. It hasn't been supported on Windows since
3.11. I believe that it is supported on Motif under certain window
managers.
"Mohsen Saboorian"
<mohsen@xxxxxxxxx> Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
03/31/2006 09:31 PM
Please respond to
"Eclipse Platform SWT component developers list."
To
<platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Using
a LayoutData several times
I've noticed that it is not possible to reuse an instance
of a LayoutData for more than one SWT control. For instance see the following
lines of code:
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalSpan = 2;
Button b1 = new Button(group1,
SWT.CHECK);
whole.setText("Checkbox 1");
whole.setLayoutData(gridData);
// gridData = new GridData(GridData.FILL_HORIZONTAL);
// gridData.horizontalSpan = 2;
When two lines are commented out, the gridData is not
applied to b2, and so the long text is not shown (will overflow) in the
Group group1.
I've seen that there is nothing more that a checkWidget()
and a local assignment for setLayoutData(), so why is it not possible to
apply a single instance to multiple widgets?
I also don't understand what is the difference between
SYSTEM_MODAL and APPLICATION_MODAL.
Thanks in advance.
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev