background image
<< Windows that Precede the Main Window | Record the new Invoke method >>

Complete the declaration for the wStartup constant

<< Windows that Precede the Main Window | Record the new Invoke method >>
82
Getting Started: A Tutorial
4 C
APTURING
Y
OUR
A
PPLICATION
Windows that Precede the Main Window
3
In SilkTest, open the test frame
Open cstut.inc.
4
Record a declaration for the dialog
Click Record/Window Declarations. Point to the title bar of the Green
Mountain Outpost dialog that you left open in Step 2. Press Ctrl+Alt.
The declaration is captured in the Record Windows Dialog, as shown in
the following figure:
5
Paste the declaration to the test frame
Click Paste to Editor.
6
Close the Record Window Declarations dialog
Click Close. A declaration for window DialogBox
GreenMountainOutpost is added to the test frame.
Step 2: Complete the declaration for the wStartup
constan
t
1
In SilkTest, remove the comment characters (//) at the beginning of
the declaration.
If it is not already expanded, expand the declaration for window
MainWin GMO
by clicking on the plus icon [+].
In the MainWin declaration, select the constant wStartup, which
appears several lines down, by clicking to the left of the diamond
icon .
Click Outline/Uncomment Block.
Note A red X appears to the left of the constant.