home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / listctls / spinbut / spinbut.cpp < prev   
Encoding:
C/C++ Source or Header  |  1996-10-29  |  704 b   |  27 lines

  1. /************************************************************
  2. / List Controls - Spin Button Date Control
  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 <iapp.hpp>
  9. #include <iframe.hpp>
  10. #include <icconst.h>
  11. #include "datectrl.hpp"
  12.  
  13. void main()
  14. {
  15. IFrameWindow frame("Date Spin Button Example");
  16. DateControl  date(IC_FRAME_CLIENT_ID, &frame, &frame);
  17.  
  18. // Put the control in the client area, give the frame
  19. // the input focus, and show the frame.
  20. frame
  21.   .setClient(&date)
  22.   .setFocus()
  23.   .show();
  24.  
  25. IApplication::current().run();
  26. }
  27.