InputBox

Message box

Constructors

this
this(UIString caption, UIString message, Window parentWindow, dstring initialText, void delegate(dstring result) handler)
Undocumented in source.

Members

Functions

initialize
void initialize()

override to implement creation of dialog controls

onShow
void onShow()

called after window with dialog is shown

text
dstring text()
Undocumented in source. Be warned that the author may not have intended to support it.
text
Widget text(dstring t)
Undocumented in source. Be warned that the author may not have intended to support it.
text
Widget text(UIString s)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_actions
const(Action)[] _actions;
Undocumented in source.
_editor
EditLine _editor;
Undocumented in source.
_message
UIString _message;
Undocumented in source.
_text
dstring _text;
Undocumented in source.

Inherited Members

From Dialog

_window
Window _window;
Undocumented in source.
_parentWindow
Window _parentWindow;
Undocumented in source.
_popup
PopupWidget _popup;
Undocumented in source.
_caption
UIString _caption;
Undocumented in source.
_flags
uint _flags;
Undocumented in source.
_icon
string _icon;
Undocumented in source.
_initialWidth
int _initialWidth;
Undocumented in source.
_initialHeight
int _initialHeight;
Undocumented in source.
_defaultButtonIndex
int _defaultButtonIndex;
Undocumented in source.
dialogResult
Signal!DialogResultHandler dialogResult;
Undocumented in source.
measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

windowIcon
string windowIcon [@property getter]

get icon resource id

windowIcon
string windowIcon [@property setter]

set icon resource id

windowCaption
UIString windowCaption [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
windowCaption
dstring windowCaption [@property setter]

set window caption

windowCaption
UIString windowCaption [@property setter]

get window caption

_buttonActions
const(Action)[] _buttonActions;
Undocumented in source.
_defaultButton
ImageTextButton _defaultButton;
Undocumented in source.
_cancelButton
ImageTextButton _cancelButton;
Undocumented in source.
createButtonsPanel
Widget createButtonsPanel(const(Action)[] actions, int defaultActionIndex, int splitBeforeIndex)

create panel with buttons based on list of actions

findKeyAction
Action findKeyAction(uint keyCode, uint flags)

map key to action

handleAction
bool handleAction(Action action)

Custom handling of actions

initialize
void initialize()

override to implement creation of dialog controls

close
void close(Action action)

Notify about dialog result, and then close dialog.

show
void show()

shows dialog

onShow
void onShow()

called after window with dialog is shown

closeWithDefaultAction
bool closeWithDefaultAction()

calls close with default action; returns true if default action is found and invoked

closeWithCancelAction
bool closeWithCancelAction()

calls close with cancel action (if found); returns true if cancel action is found and invoked

onKeyEvent
bool onKeyEvent(KeyEvent event)

pass key event here; returns true if search text is updated and you can move selection using it

Meta