Styles in Groups. [message #467365] |
Mon, 30 January 2006 08:29  |
Eclipse User |
|
|
|
All the styles are seen equals, in linux and windows.
This is a snippet:
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
public class Prueba {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
Group g = new Group(shell, SWT.SHADOW_ETCHED_OUT);
// Group g = new Group(shell, SWT.SHADOW_ETCHED_IN);
// Group g = new Group(shell, SWT.SHADOW_IN);
// Group g = new Group(shell, SWT.SHADOW_OUT);
// Group g = new Group(shell, SWT.SHADOW_NONE);
g.setLayout(new FillLayout());
g.setText("Group");
Label l = new Label(g, 0);
l.setText("Dentro");
l.pack();
g.pack();
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
Switching the uncommented line make no effect
|
|
|
|
Re: Styles in Groups. [message #467424 is a reply to message #467390] |
Tue, 31 January 2006 03:23  |
Eclipse User |
|
|
|
No, I'm only tried on linux and windows
Thanks for your answer.
Daniel Spiewak wrote:
> From the API javadoc:<i>
>
> Shadow styles are hints and may not be honoured by the platform. To create
> a group with the default shadow style for the platform, do not specify a
> shadow style. </i>
>
> Have you tried it on Mac or Motif?
|
|
|
Powered by
FUDForum. Page generated in 0.29371 seconds