This recipe will display a dialog box with three buttons: Yes, Cancel, and No. When the user clicks a button, the respective message will be displayed, informing you of which button was pressed by the user. The idea is to understand the response generated when any button is pressed and take action accordingly.
Understanding different buttons in a dialog box
How to do it...
In this recipe, we will be making use of the following methods:
- dialogCreateAlert(): This method is used to display a message via a dialog box
- dialogSetPositiveButtonText(): This method is used to display the Yes button in a dialog box
- dialogSetNegativeButtonText(): This method is used to display the No button in a dialog box
- dialogSetNeutralButtonText...