Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Another common task is to display a dialog to collect just a single piece of information or prompt the user for some confirmation. We've used Dialog.alert before to display a simple alert, but these aren't active and can't be used to collect any real information. The Dialog class is actually much more flexible! There are several forms that will display common dialogs, dialogs with custom buttons, or even dialogs with a simple ChoiceField.
Being so flexible can also make it somewhat confusing though, so we will add a few menu items to demonstrate each form of dialog that can be used. The first example is to use one of the stock common dialogs.