Show / Hide Table of Contents

Method dialog.showWarning


Overload

Shows dialog with DIcon.Warning icon.

public static int showWarning(string text1 = null, string text2 = null, Strings buttons = default, DFlags flags = 0, AnyWnd owner = default, string expandedText = null, string title = null, int secondsTimeout = 0)
Parameters
text1  (string)

Main instruction. Bigger font.

text2  (string)

Text below main instruction.

buttons  (Strings)

Button ids and labels. Examples: "OK|Cancel", "1 &Save|2 Do&n't Save|0 Cancel". If omitted, null or "", the dialog will have OK button, id 1. Common buttons: OK, Yes, No, Retry, Cancel, Close. More info in Remarks.

flags  (DFlags)
owner  (AnyWnd)

Owner window. See dialog.SetOwnerWindow.

expandedText  (string)

Text that the user can show and hide.

title  (string)

Title bar text. If omitted, null or "", uses dialog.options.defaultTitle.

secondsTimeout  (int)

If not 0, after this time (seconds) auto-close the dialog and return dialog.Timeout.

Returns
int

Selected button id.

Exceptions
Win32Exception

Failed to show dialog.

Remarks

Calls dialog.show.