TolliumScreenBase::RunSimpleScreen (open)

Display a simple screen with a yes/no or ok/cancel dialog

Syntax

LOADLIB "mod::tollium/lib/screenbase.whlib";

STRING FUNCTION RunSimpleScreen(STRING type, STRING message, RECORD options)

Parameters

STRING type

Dialog base type: error/warning/info for "Ok" boxes, verify/confirm/question for Yes/No boxes which default to No, Yes and nothing respectively

STRING message

Message

RECORD options

Options

STRING ARRAY buttons

Set explicit buttons list

STRING defaultbutton

Default button to select

STRING ARRAY dontshowbuttons

Names of buttons that are valid choices for 'don't show again'

STRING dontshowkey

If set, name of registry key to save 'don't show again' settings

BOOLEAN html

If true, interpret mesage as HTML (as returned by GetHTMLTid)

STRING icon

Icon (default: "tollium:messageboxes/information"). Examples: "tollium:messageboxes/error", "tollium:messageboxes/warning", "tollium:messageboxes/question"

STRING title

Override title (parent screen title is used as default, and falls back to application titel if unset)

Return value

STRING

The selected button. An empty string if the dialog is cancelled or the application is disconnected