Dialogs are used in conjunction with event-driven programming when creating Natural applications for graphical user interfaces (GUIs).
For information on dialogs and event-driven programming, please refer to Event-Driven Programming.