abstract class Dialog

Base class for all dialog user interface boxes.

dialog is a program used which displays text user interface widgets.


protected static string backtitle = ""

Background title, can be used of an application name.

static void setBackTitle(string btitle)

Sets the background title for dialog widgets.

static string getBackTitle()

Returns current background title.

this(string dialogType, string title, string text, uint h, uint w)

Base constructor for all dialog boxes.

Parameters

dialogType

A box name (msgbox, calendar, checklist, menu, etc.)

title

A form name, a title for current box example.

text

Main message of the box (for description or clarification).

h

Height, number of lines.

w

Width, number of columns.

void setButtonHandler(Action act, fn_t fn)

It is possible to assign callbacks to events such as pressing OK (or YES), NO (or CANCEL), ESC. ESC is always available.

void setText(string text)

Changes a box text.

void run()

Execution launch.

Variables

backtitle

Background title, can be used of an application name.

Methods

setBackTitle
getBackTitle
this
setButtonHandler
setText
run