Page 1 of 1

Minimizing a form ?

Posted: Fri May 16, 2008 10:26 pm
by vonBrabant
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

Posted: Mon May 19, 2008 1:51 pm
by Support Team
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

Posted: Mon May 19, 2008 3:26 pm
by vonBrabant
Okay, thanks.
I also found a way using element functions, but this is much easier.

vonBrabant