Form.ScreenRectangle returns invalid value

Bug reports.
Posts: 47
Joined: Wed Mar 18, 2015 10:06 pm

Form.ScreenRectangle returns invalid value

Post by jackrabbit » Fri Oct 02, 2015 8:39 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Form.ScreenRectangle returns invalid value

Post by Support Team » Tue Oct 06, 2015 7:49 am

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.