home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l040 / 11.ddi / OWLDEMOS.ZIP / HELLOAPP.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1992-10-27  |  874 b   |  35 lines

  1. {************************************************}
  2. {                                                }
  3. {   Demo program                                 }
  4. {   Copyright (c) 1991 by Borland International  }
  5. {                                                }
  6. {************************************************}
  7.  
  8. program Hello;
  9.          
  10. uses WinTypes, WinProcs, OWindows;
  11.          
  12. type
  13.  
  14.   { Define a TApplication descendant } 
  15.   THelloApp = object(TApplication)
  16.     procedure InitMainWindow; virtual;
  17.   end;
  18.  
  19. { Construct the THelloApp's MainWindow object } 
  20. procedure THelloApp.InitMainWindow;
  21. begin
  22.   MainWindow := New(PWindow, Init(nil, 'Hello, Turbo Pascal World'));
  23. end;
  24.  
  25. { Declare a variable of type THelloApp } 
  26. var
  27.   HelloApp: THelloApp;
  28.  
  29. { Run the HelloApp }
  30. begin
  31.   HelloApp.Init('HelloApp');
  32.   HelloApp.Run;
  33.   HelloApp.Done;
  34. end.  
  35.