proc init(self: wMessageDialog; owner: wWindow = nil; message: string = "";
caption: string = ""; style: wStyle = wOK) {...}{.
raises: [wWindowError, wCursorError, IndexDefect, wFontError], tags: [RootEffect].}
-
Initializer.
proc MessageDialog(owner: wWindow = nil; message: string = ""; caption: string = "";
style: wStyle = wOK): wMessageDialog {...}{.inline, discardable,
raises: [wWindowError, wCursorError, IndexDefect, wFontError], tags: [RootEffect].}
-
Constructor.
proc getMessage(self: wMessageDialog): string {...}{.inline, raises: [], tags: [].}
-
Returns the message that will be displayed on the dialog.
proc getCaption(self: wMessageDialog): string {...}{.inline, raises: [], tags: [].}
-
Gets the caption that will be displayed on the dialog.
proc getStyle(self: wMessageDialog): wStyle {...}{.inline, raises: [], tags: [].}
-
Gets the style.
proc setMessage(self: var wMessageDialog; message: string) {...}{.inline, raises: [], tags: [].}
-
Sets the message that will be displayed on the dialog.
proc setCaption(self: var wMessageDialog; caption: string) {...}{.inline, raises: [], tags: [].}
-
Sets the caption that will be displayed on the dialog.
proc setStyle(self: var wMessageDialog; style: wStyle) {...}{.inline, raises: [], tags: [].}
-
Sets the style of the dialog.
proc setOKLabel(self: wMessageDialog; ok: string) {...}{.inline, raises: [], tags: [].}
-
Overrides the default labels of the OK button.
proc setOKCancelLabels(self: wMessageDialog; ok: string; cancel: string) {...}{.inline,
raises: [], tags: [].}
-
Overrides the default labels of the OK and Cancel buttons.
proc setYesNoCancelLabels(self: wMessageDialog; yes: string; no: string; cancel: string) {...}{.
inline, raises: [], tags: [].}
-
Overrides the default labels of the Yes, No and Cancel buttons.
proc setYesNoLabels(self: wMessageDialog; yes: string; no: string) {...}{.inline, raises: [],
tags: [].}
-
Overrides the default labels of the Yes and No buttons.
proc setRetryCancelLabels(self: wMessageDialog; retry: string; cancel: string) {...}{.
inline, raises: [], tags: [].}
-
Overrides the default labels of the Retry and Cancel buttons.
proc setAbortRetryIgnoreLabels(self: wMessageDialog; abort: string; retry: string;
ignore: string) {...}{.inline, raises: [], tags: [].}
-
Overrides the default labels of the Abort, Retry and Ignore buttons.
proc setCancelTryContinueLabels(self: wMessageDialog; cancel: string;
tryagain: string; cont: string) {...}{.inline, raises: [],
tags: [].}
-
Overrides the default labels of the Cancel, Try Again and Continue buttons.
proc showModal(self: wMessageDialog): wId {...}{.discardable, raises: [Exception],
tags: [RootEffect].}
-
Shows the dialog, returning one of wIdOk, wIdYes, wIdNo, wIdCancel, wIdTryAgain, wIdContinue, wIdAbort, wIdRetry or wIdIgnore.
proc display(self: wMessageDialog): wId {...}{.inline, discardable, raises: [Exception],
tags: [RootEffect].}
-
Shows the dialog in modal mode, returning the selected button id. For wMessageDialog class, this function is the same as showModal().