Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Pixel size of GUI Element
Pixel size of GUI Element [message #726011] Fri, 16 September 2011 12:07 Go to next message
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 Go to previous messageGo to next message
Andreas Hoegger is currently offline Andreas Hoegger
Messages: 174
Registered: February 2010
Senior Member
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 Go to previous message
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
Previous Topic:[SWT GUI] switch between outlines attached to the desktop
Next Topic:Editable Column
Goto Forum:
  


Current Time: Wed Oct 22 23:20:47 GMT 2014

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

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