|
|
|
Re: Dimension of Custom Components [message #58658 is a reply to message #58445] |
Thu, 08 November 2007 14:17 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
not always but very often :-)
If your control is made of texts for example you have to determine the sizes
of those texts add margin, padding, border etc. to get the preferred size of
your control (This is the size in which position and size of those texts are
optimal for a proper layout). This is nothing that can be done automatically
by the system. But if your control extends Composite for example and your
control makes use of the composite pattern using a certain layout for
control positioning into the control the original computeSize method of the
Composite should be sufficient.
Ciao
Frank
"Martin" <mdilger@splitshade.de> schrieb im Newsbeitrag
news:448e63aa83b7d7135d97c887c0fb5136$1@www.eclipse.org...
> Hi,
>
> I managed to get it working by overwriting computeSize() in my widget.
> The 100 $ Question is now, does I always have to provide an own
> implementation
> of computeSize?
>
> Kind regards
>
> Martin Dilger
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04434 seconds