Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Default size of a Composite
Default size of a Composite [message #640720] Mon, 22 November 2010 22:01 Go to next message
Andreas Hoegger is currently offline Andreas HoeggerFriend
Messages: 186
Registered: February 2010
Senior Member
Hi all
Does anybody know the reason for having a default size of a Composite?
See > Composite:computeSize(int, int, boolean)
if (size.x == 0) size.x = DEFAULT_WIDTH;
if (size.y == 0) size.y = DEFAULT_HEIGHT;

I do have a Composite having a GridLayout with 0...n Controls in it.
This controls might be excluded (using the GridData exclude flag) or
not. So if any of the Controls is excluded or the Composite does not
contain any Control the Composite shows up with its default size of
64*64. I expected 0*0.

Probably I dismiss a serious need of this default size.
Bug or Feature?

Thank you
Re: Default size of a Composite [message #640847 is a reply to message #640720] Tue, 23 November 2010 10:51 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 277
Registered: July 2009
Location: India
Senior Member
Please see this

Lakshmi P Shanmugam
Previous Topic:how can i know if i'm running in a top level thread?
Next Topic:How associate a combo in a TableItem in a Table
Goto Forum:

Current Time: Mon Mar 01 05:28:57 GMT 2021

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

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

Back to the top