Important: The information in this document is obsolete and should not be used for new development.
Chapter 19 -
This chapter includes recipes and sample code that demonstrate how to
Working With Dialog Boxes
and Controls
Dialog boxes and controls are described in detail beginning on page 239 in Chapter 8, "Displaying, Manipulating, and Printing Data."
- work with dialog boxes and controls (a general outline)
- respond to user actions in a control view (two recipes)
- display a modal dialog box
For related information, see "Recipe--Changing the Current Target Object and Performing Validation," beginning on page 339, and also Chapter 17, "Working With Views."
Chapter Contents
- Overview
- Recipes--Dialog Boxes and Controls
- Working With Dialog Boxes and Controls--A General Outline
- Recipe--Responding to User Actions in a Control View
- Define a Subclass for the Control View
- Implement a DoEvent Method
- Recipe--An Alternative Approach to User Actions in a Control
- Define a Unique Constant for Each Event You Will Handle
- Define a View Resource for Your Dialog View
- Override the DoEvent Method in Your Subclass of TDialogView
- Recipe--Displaying a Modal Dialog Box
- Define a 'View' Resource for the Dialog-Box Window Hierarchy
- Create, Display, and Close the Dialog Box
- Call the Window's PoseModally Method to Display the Dialog Box
- Call the Window's Close Method