home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / canvas / lunchdlg / lunchdlg.cpp next >
Text File  |  1996-10-29  |  753b  |  35 lines

  1. //*********************************************************
  2. // Lunch dialog - Sample Dialog Template
  3. //
  4. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. // Copyright (c) 1997 John Wiley & Sons, Inc.
  6. // All Rights Reserved.
  7. //*********************************************************
  8. #include <iframe.hpp>
  9. #include <iapp.hpp>
  10. #include <ipushbut.hpp>
  11. #include <iradiobt.hpp>
  12. #include "lunchdlg.h"
  13.  
  14. void main ( )
  15. {
  16.   IFrameWindow
  17.     lunch( ID_LUNCH_DIALOG );
  18.  
  19.   // Initialize the dialog controls.
  20.   IRadioButton
  21.     hamburger( ID_HAMBURGER, &lunch );
  22.   hamburger
  23.    .select()
  24.    .setFocus();
  25.   IRadioButton
  26.     milk( ID_MILK, &lunch );
  27.   milk
  28.    .select();
  29.  
  30.   lunch
  31.    .show();
  32.  
  33.   IApplication::current().run();
  34. }
  35.