home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / zkuste / delphi / kompon / d45 / OPTIONS.ZIP / Units / ArrayEditor.pas < prev    next >
Pascal/Delphi Source File  |  2002-06-06  |  711b  |  43 lines

  1. unit ArrayEditor;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TfrmArrayEditor = class(TForm)
  11.     memArray: TMemo;
  12.     lblCount: TLabel;
  13.     Button1: TButton;
  14.     Button2: TButton;
  15.     procedure memArrayChange(Sender: TObject);
  16.   private
  17.     procedure DispCount;
  18.   public
  19.     { Public declarations }
  20.   end;
  21.  
  22. var
  23.   frmArrayEditor: TfrmArrayEditor;
  24.  
  25. implementation
  26.  
  27. {$R *.DFM}
  28.  
  29. { TfrmArrayEditor }
  30.  
  31. procedure TfrmArrayEditor.DispCount;
  32. begin
  33.   lblCount.Caption := IntToStr(MemArray.Lines.Count) + ' items';
  34. end;
  35.  
  36. procedure TfrmArrayEditor.memArrayChange(Sender: TObject);
  37. begin
  38.   DispCount;
  39. end;
  40.  
  41. end.
  42.  
  43.