Skip to content

dos_duallist

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

Displays a sizeable Windows dialog box with include/exclude list boxes. Items can be moved between the list boxes by either dragging or by using the move left/right buttons.

Syntax

(dos_duallist title prompt list1 list2 [list1_prompt list2_prompt])

Parameters

title

A string containing the dialog box title.

prompt

A string containing the dialog box prompt.

list1

The first list of string values.

list2

The second list of string values.

list1_prompt

A prompt for the first list box.

list2_prompt

A prompt for the second list box.

Returns

A list of two lists: each containing the results of each list box, if successful.

nil on cancel or on error.

Example

Command: (setq list1 (list "Layer1" "Layer2" "Layer3"))
("Layer1" "Layer2" "Layer3")

Command: (setq list2 (list "Layer5" "Layer5" "Layer6"))
("Layer5" "Layer5" "Layer6")

Command: (dos_duallist "Layers" "Drag or move the layers" list1 list2 "List1" "List2")
(("Layer2" "Layer5") ("Layer1" "Layer5" "Layer6" "Layer3"))

Clone this wiki locally