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 typeDialog base type: error/warning/info for "Ok" boxes, verify/confirm/question for Yes/No boxes which default to No, Yes and nothing respectively
STRING messageMessage
RECORD optionsOptions
STRING ARRAY buttonsSet explicit buttons list
STRING defaultbuttonDefault button to select
STRING ARRAY dontshowbuttonsNames of buttons that are valid choices for 'don't show again'
STRING dontshowkeyIf set, name of registry key to save 'don't show again' settings
BOOLEAN htmlIf true, interpret mesage as HTML (as returned by GetHTMLTid)
STRING iconIcon (default: "tollium:messageboxes/information"). Examples: "tollium:messageboxes/error", "tollium:messageboxes/warning", "tollium:messageboxes/question"
STRING titleOverride title (parent screen title is used as default, and falls back to application titel if unset)
Return value
STRINGThe selected button. An empty string if the dialog is cancelled or the application is disconnected