background image
<< Test Frame - The sCmdLine constant specifies | Test Frame - Modifying identifiers and tags >>
Test Frame - About dialog declarations
<< Test Frame - The sCmdLine constant specifies | Test Frame - Modifying identifiers and tags >>
92
User's Guide
4 R
ECORDING
A
T
EST
F
RAME
Window declaration syntax and structure
Because child objects are nested within the declaration of their parent object,
the declarations for the child objects do not need to begin with the reserved
word window.
About dialog declarations
The following example from the Text Editor application shows the
declarations for the Find dialog and its contained controls:
window DialogBox Find
tag "Find"
parent TextEditor
StaticText FindWhatText
multitag "Find What:"
"$65535"
TextField FindWhat
multitag "Find What:"
"$1152"
CheckBox CaseSensitive
multitag "Case sensitive"
"$1041"
StaticText DirectionText
multitag "Direction"
"$1072"
RadioList Direction
multitag "Direction"
"$1056"
PushButton FindNext
multitag "Find Next"
"$1"
PushButton Cancel
multitag "Cancel"
"$2"
Declarations are
nested
The declarations for the controls contained by a dialog are nested within the
dialog's declaration to show the GUI hierarchy.
The parent statement
Although a dialog is not physically contained by the main window, as is true
for menus, the dialog nevertheless logically belongs to the main window.
Therefore, a parent statement within each dialog declaration is used to
indicate that it belongs to the main window of the application.