back to Table of Contents


MessageBox$ (function)

Will display a short message to the user and wait for acknowledgment. The MessageBox will popup in its own detached window but is aware of its parent program window, hence closing the parent window will also close the MessageBox too. The message can consist of one or more short text lines incl. empty lines and/or horizontal rulers. Also one or more buttons can be defined for acknowledgment. If only one button is defined, then its keyboard shortcut will be <Enter>. If multiple buttons exist, then the first ten buttons (from left to right) get the number keys <1>, <2>, <3> ... <0> assigned as their keyboard shortcuts.


SYNTAX:

button$ = MessageBox$ (winIcon$, winTitle$, bodyText$, buttonText$)

INPUTS:

winIcon$ (STRING)

winTitle$ (STRING)

bodyText$ (STRING)

buttonText$ (STRING)

{IMG imagefile clear}

imagefile
clear

{SYM which back shadow shine border}

which
back, shadow, shine, border
Use only a single space for option separation, eg.:

{IMG 'Error Icon.png' *} -> quoted name, no _CLEARCOLOR

{SYM Checkmark * 7 * *} -> SHADOWPEN=7, all other default

All given images and symbols will be KEEPASPECT scaled to fit for the used button height.

RESULT:

button$ (STRING)


back to Table of Contents