Example:
int result = choiceDialog("Save changes?", "Don't Save", "Cancel", "Save");
if (result == 2) saveDocument();
else if (result == 1) return; // cancelledint choiceDialog(string message, string b0, string b1 = null, string b2 = null)Shows a choice dialog with up to 3 buttons.
The buttons are displayed right-to-left, so b0 is the rightmost button.
message | The message to display |
b0 | First button label (rightmost) |
b1 | Second button label (or null) |
b2 | Third button label (or null) |
Example:
int result = choiceDialog("Save changes?", "Don't Save", "Cancel", "Save");
if (result == 2) saveDocument();
else if (result == 1) return; // cancelled