Visual LISP provides a tool for previewing dialog boxes defined with DCL.
Follow these steps to see how to preview a dialog boxed in the Visual LISP Editor.
Open File.
Interface Tools
Preview DCL in Editor to display a list of all the dialog boxes defined in the current text editor window.
Highlight the DCL code and press Ctrl+C, or right-click and click Copy.
hello : dialog {
label = "Sample Dialog Box";
: text {
label = "Hello, world";
}:
button {
key = "accept";
label = "OK";
is_default = true;
}
}
New File.
Save As. In the Save-as dialog box, Save As Type drop-down list, select DCL Source Files. In the File Name field, enter
hello.dcl. Browse to a location to store the DCL file and click Save.
Interface Tools
Preview DCL in Editor to display a list of all the dialog boxes defined in the current text editor window.


Note how the text editor color codes the statements in the DCL file. The default color coding scheme is shown in the following table:
|
DCL default color coding |
|
|---|---|
|
DCL element |
Color |
|
Tiles and tile attributes |
Blue |
|
Strings |
Magenta |
|
Integers |
Green |
|
Real numbers |
Teal |
|
Comments |
Magenta, on gray background |
|
Parentheses |
Red |
|
Preprocessor |
Dark blue |
|
Operators and punctuation |
Dark red |
|
Unrecognized items (for example, user variables) |
Black |