The following is sample code for generating the dialog box shown in the diagram in Example of a Dialog Box.
white primary graphical region Region
size 421 298 at 180 69
in desktop
size border
title bar "Primary Window"
system menu
minimize button
maximize button
# Dialog Box Object Definitions
invisible modal dialog box DialogBox1
size 208 110 at 116 50
in desktop
dialog border
title bar "Dialog Box"
system menu
static text ST_Control
size 85 8 at 6 92
in DialogBox1
font "system"
text "Static Text as label:"
entry field EF_Control
size 102 11 at 92 90
in DialogBox1
font "system"
text "Entry Field"
text size 30 columns
disabled group box GB_Control
size 103 33 at 4 52
in DialogBox1
font "system"
text "Group Box"
multiple selection list box LB_Control
size 80 64 at 114 17
in DialogBox1
font "system"
insert "List Box"
insert "2nd line"
insert "3rd line"
insert "4th Box"
insert "5th line"
insert "6th line"
insert "7th Box"
insert "8th line"
insert "9th line"
radio button RB1_Control
size 78 11 at 7 66
in DialogBox1
font "system"
text "Radio Button"
group is SelectionField
checked radio button RB2_Control
size 99 11 at 7 55
in DialogBox1
font "system"
text "Checked Radio Button"
group is SelectionField
check box CB1_Control
size 64 10 at 7 37
in DialogBox1
font "system"
text "Check Box"
checked check box CB2_Control
size 104 10 at 7 28
in DialogBox1
font "system"
text "Checked Check Box"
default push button PB_OK
size 38 12 at 12 4
in DialogBox1
font "system"
text "~OK"
group is Actions
cancel push button PB_Cancel
size 38 12 at 156 3
in DialogBox1
font "system"
text "Cancel"
group is Actions
push button PB_PushButton
size 76 12 at 68 3
in DialogBox1
font "system"
text "Push Button"
response to start
make DialogBox1 permanent
make DialogBox1 visible
response to PB_Cancel
exit