home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Shareware / Comunicatii / netmansuite / setup.exe / Samples / Delphi / PluginProperties.pas < prev    next >
Pascal/Delphi Source File  |  2001-05-23  |  719b  |  41 lines

  1. unit PluginProperties;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TfmPluginProperties = class(TForm)
  11.     Label1: TLabel;
  12.     Label2: TLabel;
  13.     Label3: TLabel;
  14.     Label4: TLabel;
  15.     Edit1: TEdit;
  16.     Edit2: TEdit;
  17.     procedure Edit1KeyPress(Sender: TObject; var Key: Char);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. var
  25.   fmPluginProperties: TfmPluginProperties = NIL;
  26.  
  27. implementation
  28.  
  29. {$R *.DFM}
  30.  
  31. procedure TfmPluginProperties.Edit1KeyPress(Sender: TObject;
  32.   var Key: Char);
  33. begin
  34.     if (key < '0') or
  35.        (key > '9')
  36.     then
  37.         key := #0;
  38. end;
  39.  
  40. end.
  41.