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.GetOtherButton
- Dialog.SetButton
- ListDialog.SetOtherButtonEvaluate
- ListDialog.SetOtherButtonLabel
Release notes
- 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
This function is free to use.
Created 18th August 2014, last changed 6th April 2016