Page 1 of 1

Automate application windows resize

Posted: Thu Apr 24, 2008 9:32 pm
by Chrispy
I'm trying to automate an application window to be resized to a particular size. I've been looking at what Ranorex functions could help but not come across anything.

Have you any ideas on what I can try?

Thanks

Chris

Posted: Fri Apr 25, 2008 9:22 am
by Support Team
You can resize a window using:

RxControlSetPosition() in C++
and Control.SetPosition() in C#/.NET

:!: If the window cannot be resized manually, this method might not work, though.

Michael
Ranorex Team

Posted: Thu Jun 05, 2008 4:19 pm
by markus
I was able to find information on the RxControlSetPosition() function in the Ranorex 1.4 C++ documentation, but I couldn't find any information on the corresponding Control.SetPosition() method in the RanorexNet documentation.

Searching the RanorexNet documentation for 'SetPosition' didn't turn up any information either. Where is this method documented?

Thanks for your help,
Markus

Posted: Thu Jun 05, 2008 4:33 pm
by Support Team
The corresponding functionality in RanorexNet is provided by the Control.Location and Control.Size properties.

Regards,
Alex
Ranorex Support Team