How it works...
We added another callback function and attached it as a delegate to handle the click event. Now, when we click the Help | About menu, an action takes place. We are creating and displaying the most common pop-up message box dialogs. They are modal, so the user can't use the GUI until they click the OK button.
In the first example, we display an information box, as can be seen by the icon to its left. Next, we create warning and error message boxes, which automatically change the icon associated with the popup. All we have to do is specify which message box we want to display.
There are different message boxes that display more than one OK button, and we can program our responses according to the user's selection.
The following ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access