home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / debug / invisibl / invisibl.cpp next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  620 b   |  25 lines

  1. //************************************************************
  2. // Problem Determination - Finding an Invisible Window 
  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 <iapp.hpp>
  10. #include <istattxt.hpp>
  11.  
  12. void main( )
  13. {
  14.   IFrameWindow frame(100);
  15.   IStaticText text(101, &frame, &frame, IRectangle(50,50,50,50));
  16.  
  17.   text
  18.     .setText("Initial Text");
  19.   frame
  20.    .setFocus()
  21.    .show();
  22.  
  23.   IApplication::current().run();
  24. }
  25.