Module dlangui.dialogs.msgbox
This module contains common Dialog implementation.
Synopsis
import dlangui .dialogs .msgbox;
// show message box with single Ok button
window .showMessageBox(UIString("Dialog title"d), UIString("Some message"d));
// show message box with OK and CANCEL buttons, cancel by default, and handle its result
window .showMessageBox(UIString("Dialog title"d), UIString("Some message"d), [ACTION_OK, ACTION_CANCEL], 1, delegate(const Action a) {
if (a .id == StandardAction .Ok)
Log .d("OK pressed");
else if (a .id == StandardAction .Cancel)
Log .d("CANCEL pressed");
return true;
});
Classes
Name | Description |
---|---|
MessageBox
|
Message box |
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0