Einzelnen Beitrag anzeigen

shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#2

Re: nur Ziffern in textBox

  Alt 5. Dez 2005, 18:22
Delphi-Quellcode:
procedure MakeNumericControl(theControl: TWinControl);
begin
   Assert(Assigned(theControl));
   SetWindowLong(theControl.Handle, GWL_STYLE,
      GetWindowLong(theControl.Handle, GWL_STYLE) or ES_NUMBER);
end;

MakeNemericControl(Edit1);
Andreas
  Mit Zitat antworten Zitat