home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / frame1 / infoarea / infoarea.cpp next >
C/C++ Source or Header  |  1996-10-29  |  920b  |  35 lines

  1. //************************************************************
  2. // Frame Window Basics - Information Area for the System Menu
  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 <iinfoa.hpp>
  10. #include <istattxt.hpp>
  11. #include <ithread.hpp>
  12. #include <icconst.h>
  13.  
  14. void main ( )
  15. {
  16.   IFrameWindow
  17.     frame( "Information Area for System Menu" );
  18.   IStaticText
  19.     client( IC_FRAME_CLIENT_ID, &frame, &frame );
  20.   client
  21.    .setAlignment( IStaticText::topLeftWrapped )
  22.    .setText( "Select the system menu to see informational "
  23.              "text for the system menu choices." );
  24.  
  25.   IInfoArea
  26.     informationArea( &frame );
  27.  
  28.   frame
  29.    .setClient( &client )
  30.    .setFocus()
  31.    .show();
  32.  
  33.   IThread::current().processMsgs();
  34. }
  35.