ConfirmationDialog
Confirmation dialog with standard OK and Cancel buttons.
Inherits AcceptDialog and adds a standard cancel button. Connect Confirmed to accepting the action and Canceled to handling refusal. The window does not itself delete files, save data or roll changes back.
Set DialogText, OkButtonText and CancelButtonText, then open PopupCentered. For operations requiring validation/waiting, set DialogHideOnOk = false, block repeated confirmation through GetOkButton().Disabled and hide after successful completion.
GetCancelButton returns the existing shared button. CancelButtonText directly changes its Text: an empty string keeps an empty caption, unlike OkButtonText where empty restores default OK. Do not remove/free built-in buttons; configure their properties. Platform policy determines OK/Cancel order, so do not access them by child index.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
ConfirmationDialogConstructor
public ConfirmationDialog();Creates a hidden AcceptDialog with standard Cancel and minimum size (200, 70), which content can increase. Inherits closing policy/signals.
Properties1
CancelButtonTextProperty
public string CancelButtonText { get; set; }Standard Cancel caption. Directly sets button Text; empty remains empty rather than restoring the default. Does not change cancellation behavior.
Methods3
GetCancelButtonButton
public Button GetCancelButton();Shared standard cancellation Button. Do not remove/free it; use CancelButtonText or button properties.
ButtonShared standard Cancel Button.
GetCancelButtonTextstring
public string GetCancelButtonText();Standard Cancel caption. Directly sets button Text; empty remains empty rather than restoring the default. Does not change cancellation behavior.
stringCurrent standard Cancel Text.
SetCancelButtonTextvoid
public void SetCancelButtonText(string text);Standard Cancel caption. Directly sets button Text; empty remains empty rather than restoring the default. Does not change cancellation behavior.
| Name | Type | Default |
|---|---|---|
text | string | — |
textStandard Cancel caption. Directly sets button Text; empty remains empty rather than restoring the default. Does not change cancellation behavior.