Constructor dialog.dialog
Overload
Initializes a new dialog instance and sets main properties.
public dialog(string text1 = null, string text2 = null, Strings buttons = default, DFlags flags = 0, DIcon icon = 0, AnyWnd owner = default, string expandedText = null, string footer = null, string title = null, DControls controls = null, int defaultButton = 0, Coord x = default, Coord y = default, screen screen = default, int secondsTimeout = 0, Action<DEventArgs> onLinkClick = null)
Parameters
text1 (string)
Main instruction. Bigger font. |
text2 (string)
Text below main instruction. |
buttons (Strings)
Button ids and labels. Examples: |
flags (DFlags) |
icon (DIcon) |
owner (AnyWnd)
Owner window. See dialog.SetOwnerWindow. |
expandedText (string)
Text that the user can show and hide. |
footer (string)
Text at the bottom of the dialog. Icon can be specified like |
title (string)
Title bar text. If omitted, |
controls (DControls)
Can be used to add more controls and later get their values: checkbox, radio buttons, text input. |
defaultButton (int)
id of button that responds to the |
x (Coord)
X position in dialog.Screen. If default - center. Examples: |
y (Coord)
Y position in dialog.Screen. If default - center. |
screen (screen)
dialog.Screen. Examples: |
secondsTimeout (int)
If not 0, after this time (seconds) auto-close the dialog and return dialog.Timeout. |
onLinkClick (Action<DEventArgs>)
A link-clicked event handler function, eg lambda. Enables hyperlinks in small-font text. Example:
|
Remarks
More info: dialog.show.