Figure 5-3. The LinearLightResponse program uses a DIALOG to configure itself.
An exercise, let's add a "dark adapt" feature to this program. It's an on/off sort of
thing, so would lend itself well to a check box in the dialog and a boolean variable
in the program. Figure 5-4 on the next page illustrates one way to accomplish this:
Section 5. Using dialogs
5-3Section 5. Using dialogs