Automate application windows resize

Ask general questions here.
Chrispy
Posts: 5
Joined: Tue Mar 25, 2008 1:43 pm

Automate application windows resize

Post by Chrispy » Thu Apr 24, 2008 9:32 pm

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

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

Post by Support Team » Fri Apr 25, 2008 9:22 am

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

markus
Posts: 1
Joined: Thu Jun 05, 2008 4:05 pm

Post by markus » Thu Jun 05, 2008 4:19 pm

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

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

Post by Support Team » Thu Jun 05, 2008 4:33 pm

The corresponding functionality in RanorexNet is provided by the Control.Location and Control.Size properties.

Regards,
Alex
Ranorex Support Team