MainWin Class


MainWin is the class for an application’s main window.

In the declaration for a MainWin, you can specify the sCmdLine variable, to provide the command line used to invoke the window (used by the Invoke method).


Silk Test Classic assumes that a MainWin, that has a menu (menubar) and whose parent is the desktop, is the main window of an application. One of the primary differences between MainWin and DialogBox is that MainWin usually has a menubar.


MainWin derives from the MoveableWin class; no classes derive from this class.

Methods and Properties

In addition to the methods and properties it inherits from the AnyWin class and MoveableWin class, MainWin has the following methods and properties: