Pixel size of GUI Element [message #726011] |
Fri, 16 September 2011 12:07 |
Adrian Moser Messages: 67 Registered: March 2011 |
Member |
|
|
Hi
Is there a way to get the size of a rendered GUI element (e.g. FormField or Form) during runtime? I would like to know the effective width and heigth in pixels.
Kind regards,
Adrian
|
|
|
Re: Pixel size of GUI Element [message #726165 is a reply to message #726011] |
Fri, 16 September 2011 17:13 |
Eclipse User |
|
|
|
May I ask you the reason to be interested in this information? In
general the component model does not have to care about UI sizes of any
UI implementation.
-Andreas
On 16.09.2011 14:07, Adrian wrote:
> Hi
>
> Is there a way to get the size of a rendered GUI element (e.g. FormField
> or Form) during runtime? I would like to know the effective width and
> heigth in pixels.
>
> Kind regards,
> Adrian
|
|
|
Re: Pixel size of GUI Element [message #726369 is a reply to message #726165] |
Sat, 17 September 2011 16:52 |
Adrian Moser Messages: 67 Registered: March 2011 |
Member |
|
|
In general it doesn't matter, but if you have an Image or SVG Field, it could be of interest. If you know the width and length of the field, or at least the ratio of width to length,
the application could optimize the image/svg content for the size chosen by the user.
I don't mean just simple scaling/fitting of the image, which could be done by SVG alone, but the application could optimize the layout or placement of graphic objects for a given field knowing the width/length ratio.
Adrian
|
|
|
Powered by
FUDForum. Page generated in 0.03448 seconds