The MessageBox class
The type of icon to show in the message box. Some message boxes will not show the icon.
Returns if external program logging is on or off.
If true will print output of external program to console.
import std.stdio : stdout, stderr; import message_box : MessageBox, IconType; int main(string[] args) { // Create the message box auto dialog = new MessageBox("Party Time", "The roof is on fire!", IconType.Warning); // Set the error handler dialog.onError((Throwable err) { stderr.writefln("Failed to show message box: %s", err); }); // Show the message box dialog.show(); return 0; }
0.3.0
Boost Software License - Version 1.0
A simple message box for the D programming language
It should work without requiring any 3rd party GUI toolkits. But will work with what it can find on your OS at runtime.
It tries to use the following:
* DlangUI (win32 on Windows or SDL2 on Linux)
* SDL_ShowSimpleMessageBox (Derelict SDL2)
* MessageBoxW (Windows)
* Zenity (Gtk/Gnome)
* Kdialog (KDE)
* gxmessage (X11)
Home page: https://github.com/workhorsy/d-message-box