Platforms to show: All Mac Windows Linux Cross-Platform

Back to TaskDialogMBS class.

TaskDialogMBS.AppendButton(button as TaskDialogButtonMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Adds a button.
Example
dim td as TaskDialogMBS

dim b as new TaskDialogButtonMBS
b.Text = "Hello"
b.ID = 123

td.AppendButton b

Some examples using this method:

TaskDialogMBS.AppendRadioButton(button as TaskDialogButtonMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Adds a radio button.
Example
dim td as TaskDialogMBS

dim b as new TaskDialogButtonMBS
b.Text = "Hello"
b.ID = 123

td.AppendRadioButton b

Some examples using this method:

TaskDialogMBS.Button(index as Integer) as TaskDialogButtonMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Array of the custom buttons that are to be displayed in the task dialog.

You can create TaskDialogButtonMBS objects and assign them to indexes in the array.
(Read and Write computed property)

TaskDialogMBS.CloseDialog

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Closes the dialog.

TaskDialogMBS.FindButtonByID(ID as Integer) as TaskDialogButtonMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Finds button by ID.

This searches buttons and radiobuttons for given ID.
It will not find common buttons.
Returns button if found or nil if not found.

Some examples using this method:

TaskDialogMBS.RadioButton(index as Integer) as TaskDialogButtonMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Windows MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Array of the custom radio buttons that are to be displayed in the task dialog.

You can create TaskDialogButtonMBS objects and assign them to indexes in the array.
(Read and Write computed property)

Some examples using this property:

TaskDialogMBS.ShowDialog as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Shows the dialog.
Example
dim td as new TaskDialogMBS

td.CommonButtons = BitwiseOr(td.kCommonButtonOK, td.kCommonButtonCancel)
td.Content = "Hello World"

if td.ShowDialog then

if td.SelectedButton = td.kIDOK then
MsgBox "OK"
else
MsgBox "Cancel"
end if

else
MsgBox "Failed"
end if

Returns true if everything worked right.
Returns false if creation of dialog failed.

Requires Windows Vista or newer.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...