Problem with TableWrapLayout and Group [message #281762] |
Fri, 25 February 2005 10:34 |
Eclipse User |
|
|
|
Originally posted by: barlock.usx.ibmx.com
I tried to add a Group to a Composite using TableWrapLayout. The Group
title is mostly hidden by the checkboxes inside the Group. This does not
happen if I use a GridLayout. Here's the code that demonstrates this:
FormToolkit toolkit = m_editor.getManagedForm().getToolkit();
Group platformPanel = new Group(panel, SWT.NONE);
platformPanel.setText("Supported Platforms"); //$NON-NLS-1$
toolkit.adapt(platformPanel);
TableWrapLayout layout = new TableWrapLayout();
layout.numColumns = 3;
platformPanel.setLayout(layout);
TableWrapData td = new TableWrapData(TableWrapData.FILL);
platformPanel.setLayoutData(td);
// Replace the TableWrapLayout code above with this GridLayout and the panel
// looks fine.
//GridLayout layout = new GridLayout(3, true);
//platformPanel.setLayout(layout);
toolkit.createButton(platformPanel, "aixr-r1", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "hpux10", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "linux-ix86", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "linux-ppc", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "linux-s390", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "os2-ix86", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "os400", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "solaris2", SWT.CHECK); //$NON-NLS-1$
toolkit.createButton(platformPanel, "w32-ix86", SWT.CHECK); //$NON-NLS-1$
This appears to me to be a bug, but I'd like to know if I'm doing something
wrong with the layout.
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03065 seconds