Show / Hide Table of Contents

Method dialog.showOkCancel


Overload

Shows dialog with OK and Cancel buttons.

public static bool showOkCancel(string text1 = null, string text2 = null, DFlags flags = 0, DIcon icon = 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.

flags  (DFlags)
icon  (DIcon)
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
bool

true if selected OK.

Exceptions
Win32Exception

Failed to show dialog.

Remarks

Calls dialog.show.