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

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