home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April A / Pcwk4a98.iso / PROGRAM / DELPHI16 / Calmira / Src / SRC / DEBUG.PAS < prev    next >
Pascal/Delphi Source File  |  1997-02-15  |  2KB  |  57 lines

  1. {**************************************************************************}
  2. {                                                                          }
  3. {    Calmira shell for Microsoft« Windows(TM) 3.1                          }
  4. {    Source Release 1.0                                                    }
  5. {    Copyright (C) 1997  Li-Hsin Huang                                     }
  6. {                                                                          }
  7. {    This program is free software; you can redistribute it and/or modify  }
  8. {    it under the terms of the GNU General Public License as published by  }
  9. {    the Free Software Foundation; either version 2 of the License, or     }
  10. {    (at your option) any later version.                                   }
  11. {                                                                          }
  12. {    This program is distributed in the hope that it will be useful,       }
  13. {    but WITHOUT ANY WARRANTY; without even the implied warranty of        }
  14. {    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         }
  15. {    GNU General Public License for more details.                          }
  16. {                                                                          }
  17. {    You should have received a copy of the GNU General Public License     }
  18. {    along with this program; if not, write to the Free Software           }
  19. {    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.             }
  20. {                                                                          }
  21. {**************************************************************************}
  22.  
  23. unit Debug;
  24.  
  25. interface
  26.  
  27. uses
  28.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  29.   Forms, Dialogs, StdCtrls, Menus;
  30.  
  31. type
  32.   TConsole = class(TForm)
  33.     Listbox: TListBox;
  34.   private
  35.     { Private declarations }
  36.   public
  37.     { Public declarations }
  38.     procedure Print(const s: string);
  39.   end;
  40.  
  41. var
  42.   Console: TConsole;
  43.  
  44. implementation
  45.  
  46. {$R *.DFM}
  47.  
  48. procedure TConsole.Print(const s: string);
  49. begin
  50.   with Listbox do begin
  51.     Items.Add(s);
  52.     ItemIndex := Items.Count-1;
  53.   end;
  54. end;
  55.  
  56. end.
  57.