Minimizing a form ? : Automation API

Minimizing a form ?

Class library usage, coding and language questions.

Minimizing a form ?

Postby vonBrabant » Fri May 16, 2008 11:26 pm

Hi everybody,

what is the best way to minimize a form (top level window) ?
FormActivate() restores a minimized form, but there seems to be no FormMinimize() !?

Thanx
vonBrabant
 
Posts: 15
Joined: Thu May 24, 2007 12:12 am

Postby Support Team » Mon May 19, 2008 2:51 pm

You are right, there are no explicit functions to maximize/minimize a form. You can, however, send keystrokes that do the same using the ControlSendKeys method. Use the following string for the keys parameter ('%' means holding the Alt-key):
"%{SPACE}x" to Maximize
"%{SPACE}n" to Minimize
"%{SPACE}r" to Restore a form.

Regards,
Alex
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Postby vonBrabant » Mon May 19, 2008 4:26 pm

Okay, thanks.
I also found a way using element functions, but this is much easier.

vonBrabant
vonBrabant
 
Posts: 15
Joined: Thu May 24, 2007 12:12 am


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests

cron