Class MessageBox
Message dialogs utility (native platform).
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public static class MessageBox : Object
Methods
Show(Window, String)
Displays a message box with specified text.
Declaration
[Unmanaged]
public static DialogResult Show(Window parent, string text)
Parameters
Window
parent
The parent window or null if not used. |
System.String
text
The text to display in the message box. |
Returns
DialogResult
The message box dialog result. |
Show(Window, String, String)
Displays a message box with specified text and caption.
Declaration
[Unmanaged]
public static DialogResult Show(Window parent, string text, string caption)
Parameters
Window
parent
The parent window or null if not used. |
System.String
text
The text to display in the message box. |
System.String
caption
The text to display in the title bar of the message box. |
Returns
DialogResult
The message box dialog result. |
Show(Window, String, String, MessageBoxButtons)
Displays a message box with specified text, caption and buttons.
Declaration
[Unmanaged]
public static DialogResult Show(Window parent, string text, string caption, MessageBoxButtons buttons)
Parameters
Window
parent
The parent window or null if not used. |
System.String
text
The text to display in the message box. |
System.String
caption
The text to display in the title bar of the message box. |
MessageBoxButtons
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box. |
Returns
DialogResult
The message box dialog result. |
Show(Window, String, String, MessageBoxButtons, MessageBoxIcon)
Displays a message box with specified text, caption, buttons, and icon.
Declaration
[Unmanaged]
public static DialogResult Show(Window parent, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
Parameters
Window
parent
The parent window or null if not used. |
System.String
text
The text to display in the message box. |
System.String
caption
The text to display in the title bar of the message box. |
MessageBoxButtons
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box. |
MessageBoxIcon
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box. |
Returns
DialogResult
The message box dialog result. |
Show(String)
Displays a message box with specified text.
Declaration
[Unmanaged]
public static DialogResult Show(string text)
Parameters
System.String
text
The text to display in the message box. |
Returns
DialogResult
The message box dialog result. |
Show(String, String)
Displays a message box with specified text and caption.
Declaration
[Unmanaged]
public static DialogResult Show(string text, string caption)
Parameters
System.String
text
The text to display in the message box. |
System.String
caption
The text to display in the title bar of the message box. |
Returns
DialogResult
The message box dialog result. |
Show(String, String, MessageBoxButtons)
Displays a message box with specified text, caption, buttons, and icon.
Declaration
[Unmanaged]
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons)
Parameters
System.String
text
The text to display in the message box. |
System.String
caption
The text to display in the title bar of the message box. |
MessageBoxButtons
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box. |
Returns
DialogResult
The message box dialog result. |
Show(String, String, MessageBoxButtons, MessageBoxIcon)
Displays a message box with specified text, caption, buttons, and icon.
Declaration
[Unmanaged]
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
Parameters
System.String
text
The text to display in the message box. |
System.String
caption
The text to display in the title bar of the message box. |
MessageBoxButtons
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box. |
MessageBoxIcon
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box. |
Returns
DialogResult
The message box dialog result. |