home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / slider / sliddraw / sliddraw.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  821 b   |  30 lines

  1. //*********************************************************
  2. // Sliders - Progress Indicator Custom Painting Example
  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 <islider.hpp>
  10. #include "taskview.hpp"
  11.  
  12. void main ( )
  13. {
  14. #ifdef IC_WIN
  15.   IProgressIndicator::setDefaultStyle( IProgressIndicator::defaultStyle()
  16.                                         | IProgressIndicator::pmCompatible );
  17. #endif
  18.  
  19.   // Create the status view window.
  20.   TaskStatusView
  21.     mainWindow( "Progress Indicator Custom Drawing");
  22.  
  23.   // Give the window the focus and show it.
  24.   mainWindow
  25.    .setFocus()
  26.    .show();
  27.  
  28.   IApplication::current().run();
  29. }
  30.