Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » GridData width hint hides field
GridData width hint hides field [message #1007608] Wed, 06 February 2013 17:44
Joseph Carroll is currently offline Joseph CarrollFriend
Messages: 174
Registered: May 2012
Location: Milwaukee, WI
Senior Member

I am creating a composite for a column of controls. I wanted to specify a width hint for each column so that they have a uniform look and feel. However, any time I use a width hint other than SWT.DEFAULT, the last control in the column is not shown. (See attached)

Using the code below, it will crop the last control. However, if I changed the code to
.hint(SWT.DEFAULT, SWT.DEFAULT)
the last control shows without issue.

// create the left most composite
sharedColumn1 = new Composite(theParent, SWT.None);
GridLayoutFactory.swtDefaults().numColumns(4).margins(0, 0).applyTo(sharedColumn1);
GridDataFactory.swtDefaults().align(SWT.LEFT, SWT.TOP).minSize(300, 0).hint(300, SWT.DEFAULT).applyTo(sharedColumn1);


Any one have a clue why this might be happening?

I've tried packing, laying out, and anything else that I thought might help, but nothing has worked so far.

Thanks,

JD
Previous Topic:org.eclipse.swt.SWTException: Widget is disposed
Next Topic:Extending or increaing horizontal scrollbar width
Goto Forum:
  


Current Time: Thu Mar 28 13:48:31 GMT 2024

Powered by FUDForum. Page generated in 0.06419 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top