Page 1 of 1

Form.ScreenRectangle returns invalid value

Posted: Fri Oct 02, 2015 8:39 pm
by jackrabbit
With User Code, I find a maximized form and examine its ScreenRectangle property to get the effective screen size without the bottom menu bar.

With a resolution of 1920 X 1080, I would expect to get 1920 X 1040, Ranorex returns 1936 X 1056 !

From what I see we must always substract 16 from the Width and Height returned by Ranorex to get the actual size of an object.

I am using Ranorex 5.3.4.

Re: Form.ScreenRectangle returns invalid value

Posted: Tue Oct 06, 2015 7:49 am
by Support Team
Hello jackrabbit,

Unfortunately, Ranorex doesn't have any influence on the ScreenRectangle-property.

The values are retrieved from the application window directly.
The actual values could also be verified using Microsoft Inspect.

Thank you for your understanding.

Regards,
Johannes