home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pwrgu2.zip / POWERGU2.EXE / LISTCTLS / SPINBUT / SPINBUT.CPP < prev    next >
Text File  |  1995-07-25  |  680b  |  26 lines

  1. //************************************************************
  2. // List Controls - Spin Button Date Control                 
  3. //
  4. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. // All Rights Reserved.
  6. //************************************************************
  7. #include <iapp.hpp>
  8. #include <iframe.hpp>
  9. #include <icconst.h>
  10. #include "datectrl.hpp"
  11.  
  12. void main()
  13. {
  14. IFrameWindow frame("Date Spin Button Example");
  15. DateControl  date(IC_FRAME_CLIENT_ID, &frame, &frame);
  16.  
  17. // Put the control in the client area, give the frame
  18. // the input focus, and show the frame.
  19. frame
  20.   .setClient(&date)
  21.   .setFocus()
  22.   .show();
  23.  
  24. IApplication::current().run();
  25. }
  26.