Compaq Visual Fortran: A Guide to Creating Windows Applications

Chapter 7: Dialog Boxes and Controls

Overview

In Chapter 4, during our study of QuickWin programming, we learned that Dialog boxes may be "modal" or "modeless." With a modal dialog box, the user cannot switch between the dialog box and another window or control in the program. The user must explicitly close the dialog box before any other action can be initiated within the program. On the other hand, a user can keep a number of modeless dialog boxes open while working in the client area. A toolbox in a drawing application is one example of how it would be useful to have a dialog box open while working in the main client area.

In this chapter, we will be creating Win32-based applications to demonstrate the use of both modal and modeless dialog boxes and illustrate the techniques to be used for receiving and sending messages for a range of controls. The controls will include edit text boxes, static text controls, spin buttons, radio and check buttons, track bars (slider controls), and progress bars. In addition, we will place icon and bitmap images on buttons and static controls. Mouse clicks on the images will be detected and acted upon. We will also be looking at using some of the common controls to create a user interface with a toolbar that has tool tips and a status bar.

Dialog boxes are created according to a DLGTEMPLATE structure. The DLGTEMPLATE structure may be created transparently by using the Resource Editor facilities of Developer Studio, or the fields of...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Valve Boxes and Curb Boxes
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.