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, refer to Event-Driven Programming.