home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / notebk.zip / NOTETEST.cpp < prev    next >
Text File  |  1994-02-23  |  880b  |  41 lines

  1.  
  2.  
  3. #include "notetest.hpp"
  4.  
  5. void main()
  6. {
  7.   Settings* pWin = new Settings();
  8.  
  9.   IApplication::current().run();
  10. }
  11.  
  12. Settings::Settings ( )
  13.          :IFrameWindow ( ID_SETTINGS )
  14. {
  15.   setAutoDeleteObject  ( true );
  16.  
  17.   pNotebook = new INotebook ( ID_NOTEBOOK, this, this );
  18.  
  19.   setClient ( pNotebook );
  20.  
  21.   pNotebook->show();
  22.  
  23.   IFrameWindow* pPage = new IFrameWindow( DLG_NOTEBOOKPAGE,
  24.                                           pNotebook,
  25.                                           pNotebook );
  26.  
  27.   INotebook::PageSettings pgSett ( INotebook::PageSettings::statusTextOn |
  28.                                    INotebook::PageSettings::autoPageSize );
  29.  
  30.   IPageHandle pageHandle = pNotebook->addLastPage ( pgSett, pPage );
  31.  
  32.   pNotebook->setStatusText ( pageHandle, "close me using ALT-F4" );
  33.  
  34.   show();
  35. }
  36.  
  37. Settings::~Settings ()
  38. {
  39.   delete pNotebook;
  40. }
  41.