| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Dialog.SetOtherButton
Sets the title for the other button.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Dialog | 4.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Dialog.SetOtherButton"; Text { ; NoCancel } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Text | The title for the other button. | "Cancel" | |
| NoCancel | Whether to not allow a cancel button. Pass 1 to have no cancel button, so esc key will not close dialog. Default value here is 0 for allowing cancel. (Windows only) |
0 | Optional |
Result
Returns OK or error.
Description
Sets the title for the other button.See also
- Dialog.GetButtonPressed
- Dialog.GetOtherButton
- Dialog.Run
- Dialog.SetButton
- ListDialog.SetOtherButtonEvaluate
- ListDialog.SetOtherButtonLabel
- ListDialog.SetOtherButtonNeedsSelection
- ListDialog.SetSelectButtonValue
Release notes
- Version 15.2
- Added ListDialog.SetCancelButtonValue, ListDialog.SetOtherButtonValue and ListDialog.SetSelectButtonValue to set what value is returned by ListDialog.ShowDialog function.
- Added ListDialog.SetOtherButtonNeedsSelection and ListDialog.GetOtherButtonNeedsSelection functions.
- Improved ListDialog.SetOtherButtonEvaluate and ListDialog.SetOtherButtonLabel to allow three other buttons.
- Version 13.2
- Changed ListDialog.SetOtherButtonEvaluate to query selection, so you can query it using ListDialog.GetSelectedTag and ListDialog.GetSelectedTitle in your expression.
- Version 9.5
- Added other button for ListDialog with ListDialog.GetOtherButtonEvaluate, ListDialog.GetOtherButtonLabel, ListDialog.SetOtherButtonEvaluate and ListDialog.SetOtherButtonLabel functions.
Example Databases
Blog Entries
This function is free to use.
Created 18th August 2014, last changed 6th April 2016