[archived content]

About

MessageBox? is used to display simple text alerts as a Dialog.

Example

import dfl.all;

void main() {
        auto result = DialogResult.CANCEL;
        while(result != DialogResult.OK)
        result = msgBox("Program is going to close...","Main Menu",MsgBoxButtons.OK_CANCEL,MsgBoxIcon.INFORMATION);

}

module dfl.messagebox;
public DialogResult msgBox(IWindow owner,char[] txt,char[] caption,MsgBoxButtons buttons,MsgBoxIcon icon,MsgBoxDefaultButton defaultButton,MsgBoxOptions options);
public DialogResult msgBox(IWindow owner,char[] txt,char[] caption,MsgBoxButtons buttons,MsgBoxIcon icon,MsgBoxDefaultButton defaultButton);
public DialogResult msgBox(char[] txt);
public DialogResult msgBox(IWindow owner,char[] txt);
public DialogResult msgBox(char[] txt,char[] caption);
public DialogResult msgBox(IWindow owner,char[] txt,char[] caption);
public DialogResult msgBox(char[] txt,char[] caption,MsgBoxButtons buttons);
public DialogResult msgBox(IWindow owner,char[] txt,char[] caption,MsgBoxButtons buttons);
public DialogResult msgBox(char[] txt,char[] caption,MsgBoxButtons buttons,MsgBoxIcon icon);
public DialogResult msgBox(IWindow owner,char[] txt,char[] caption,MsgBoxButtons buttons,MsgBoxIcon icon);
public DialogResult msgBox(char[] txt,char[] caption,MsgBoxButtons buttons,MsgBoxIcon icon,MsgBoxDefaultButton defaultButton);
public enum MsgBoxButtons;
public enum MsgBoxDefaultButton;
public enum MsgBoxIcon;
public enum MsgBoxOptions;

Page last modified on July 04, 2008, at 02:16 AM