home *** CD-ROM | disk | FTP | other *** search
/ Best of German Only 1 / romside_best_of_german_only_1.iso / wissen / dos / wgraph / entpack.exe / WGBSP!.EXE / BSP2.PAS < prev    next >
Pascal/Delphi Source File  |  1992-12-01  |  577b  |  31 lines

  1. program Beispiel2;
  2.  
  3. uses GApp,
  4.      GDecl,
  5.      GViews;
  6.  
  7. type TApplication=object(TApp)
  8.        procedure SetDesktopFrame(Titel:string);virtual;
  9.      end;
  10.  
  11. var MyProg:TApplication;
  12.  
  13. {Implementation TApplication}
  14.  
  15. procedure TApplication.SetDesktopFrame(Titel:string);
  16. var R:TRect;
  17. begin
  18.   with Desktop^ do
  19.    begin
  20.      GetBounds(R);
  21.      Frame:=new(PFrame, Init(R,R,Titel,winDouble+winPanel+winMenu));
  22.      Frame^.Palette:=Pal[palRed];
  23.      List^.InsertItem(Frame);
  24.    end;
  25. end;
  26.  
  27. begin
  28.   MyProg.Init('Beispiel 2');
  29.   MyProg.Run;
  30.   MyProg.Done;
  31. end.