Show / Hide Table of Contents

Method dialog.showYesNo


Overload

Shows dialog with Yes and No buttons.

public static bool showYesNo(string text1 = null, DText text2 = null, DFlags flags = 0, DIcon icon = 0, AnyWnd owner = default, DText expandedText = null, string title = null, int secondsTimeout = 0)
Parameters
text1  (string)

Heading text.

text2  (DText)

Message text. Can be string, or string with links like new("Text <a>link</a> text.", e => { print.it("link"); }).

flags  (DFlags)

Enum: CommandLinks, ExpandDown, Wider, XCancel, CenterOwner, CenterMouse, RawXY, MinimizeButton, Topmost, NoTopmost.

icon  (DIcon)

Enum: Warning, Error, Info, Shield, App.

owner  (AnyWnd)

Owner window. See dialog.OwnerWindow.

expandedText  (DText)

Text in expander control. Can be string, or string with links like new("Text <a>link</a> text.", e => { print.it("link"); }).

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 Yes.

Exceptions
Win32Exception

Failed to show dialog. Unlikely.

Remarks

Calls dialog.show.