background image
<< Custom Objects - Mapping custom classes to standard classes | Custom Objects - Evenly sized and spaced controls >>
Custom Objects - Supporting graphical controls
<< Custom Objects - Mapping custom classes to standard classes | Custom Objects - Evenly sized and spaced controls >>
User's Guide
319
17 S
UPPORTING
C
USTOM
O
BJECTS
Supporting graphical controls
Procedure To perform a class mapping when a declaration for a CustomWin
appears in the Record Window Declarations dialog:
1
Press Ctrl+Alt.
The declarations are frozen in the Window Declaration list box in the
lower half of the Record Window Declarations dialog.
2
In the Window Declarations list box, click on the line containing the
declaration for the custom object.
The line is highlighted and the declaration for the CustomWin appears in
the Window Detail group box.
3
In the Window Detail group box, press the Class Map pushbutton.
The Class Map dialog appears. The name of the custom class is
displayed in the Custom Class text field.
4
In the Standard Class field, enter the name of the built-in 4Test class to
which you are mapping the custom class.
5
Click Add.
6
Click OK.
When you resume recording, the object has the standard 4Test class. Any
subsequent similar objects encountered will automatically be mapped to the
correct 4Test class. You must modify any prerecorded declarations containing
these objects to use the standard class.
Supporting graphical controls
If an application contains a graphical area, for example a tool bar, which is
actually composed of a discrete number of graphical objects, SilkTest records
a single declaration for the entire graphical area; it does not understand that
the area contains individual objects.