Repository navigation
dos_msgboxex
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Creates, displays and operates a custom Windows message box, or dialog, box. The message box contains an application-defined message and title plus user-definable push buttons.
(dos_msgboxex text title button-list icon)
text
The message to be displayed.
title
The message box title.
button-list
A list of strings identifying the custom button labels. For each string found in the list, a custom button will be created. The maximum number of buttons allowed is five. Note, the default button is always the first button in the list.
icon
The icon. The allowable values are as follows:
| Value | Description |
|---|---|
| 0 | Asterisk |
| 1 | Exclamation |
| 2 | Hand |
| 3 | Information |
| 4 | Question |
| 5 | Stop |
An integer indicating the button that was pressed. Note, if the key is pressed, the index of the last button is returned.
nil if not successful or on error.
(setq a "Wouldn't it be nice to have a custom message box\n")
(setq b "function that would accept a list of strings that\n")
(setq c "identify custom button labels? Thus, for instance,\n")
(setq d "you could present a user with three custom buttons.")
(setq text (strcat a b c d))
(setq buttons (list "Sometimes" "Never" "What?"))
(dos_msgboxex text "Question of the Day" buttons 4)
0