Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Pixel size of GUI Element
Pixel size of GUI Element [message #726011] Fri, 16 September 2011 12:07 Go to next message
Adrian MoserFriend
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
Eclipse UserFriend
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 MoserFriend
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: Thu Apr 25 13:58:12 GMT 2024

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

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

Back to the top