Skip to content

dos_checklist

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Displays a sizeable Windows dialog box with a check-style list box. Useful when trying to toggle the state of objects or settings.

Syntax

(dos_checklist title prompt assoc-list [T])

Parameters

title

A string containing the dialog box title.

prompt

A string containing the dialog box prompt.

assoc-list

An association list of string values and their associated state, either 1 for on or 0 for off.

T

If specified, the dialog will display an Add... button allowing the user to add new items to the list.

Returns

The association list with the state values updated to reflect the changed made by the user if successful.

nil on cancel or on error.

Example

Command: (setq layer_list '(("Layer1" . 0) ("Layer2" . 0) ("Layer3" . 0)))
(("Layer1" . 0) ("Layer2" . 0) ("Layer3" . 0))

Command: (dos_checklist "Display Layers" "Layers to turn on/off" layer_list)

(("Layer1" . 1) ("Layer2" . 0) ("Layer3" . 1))

Clone this wiki locally