User Guide
647
SPSS Scripting
Facility
The Editor initially displays a blank dialog box form. You can add controls, such as
radio buttons and check boxes, by selecting the appropriate tool and dragging with
the mouse. (
Hold the mouse over each tool for a description.) You can also drag the
sides and corners to resize the dialog box. After adding a control, right-click the
control to set properties for that control.
Dialog moni
tor f unction.
To create the dialog monitor function, right-click the dialog
box form (make sure no control is selected on the form) and enter a name for the
function in the DialogFunc field. The statements that define the function are added
to your scr
ipt, although you will have to edit the function manually to define the
behavior for each action.
When finished, click the Save and Exit icon (far right on the toolbar) to add the
code for t
he dialog box to your script.
To Create a Custom Dialog Box
E In the script window, click the cursor in the script where you want to insert the code
for the di
alog box.
E From the
menus choose:
Script
Dialog Editor...
E
Select tools from the palette and drag in the new dialog box form to add controls,
such as buttons and check boxes.
E Resize the dialog box by dragging the handles on the sides and corners.
E Right-click the form (with no control selected) and enter a name for the dialog
monitor
function in the DialogFunc field.
E Click t
he Save and Exit icon (far right on the toolbar) when you are finished.
You have
to edit your dialog monitor function manually to define the behavior of the
dialog box.










