home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pwrgu2.zip / POWERGU2.EXE / CANVAS / LUNCHDLG / LUNCHDLG.CPP next >
Text File  |  1995-07-23  |  679b  |  27 lines

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