Einzelnen Beitrag anzeigen

Daniel B
(Gast)

n/a Beiträge
 
#3
  Alt 10. Apr 2003, 21:40
Hallo,

hat sich erledigt.
Geht so:
Delphi-Quellcode:
  protected
    procedure KeyPress(var Key:Char); override;
Delphi-Quellcode:
procedure TRealEdit.KeyPress(var Key:Char);
begin
  inherited KeyPress(Key);
  if not (Key in ['0'..'9', #8]) then
  begin
    Key := #0;
  end;
end;
Grüsse, Daniel
  Mit Zitat antworten Zitat