24-03-2023, Saat: 04:14
(14-04-2019, Saat: 18:05)mcuyan Adlı Kullanıcıdan Alıntı: Buyrun size bir DateEdit..
procedure TForm1.Edit1Enter(Sender: TObject); begin Edit1.Clear; end; procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if not(CharInSet(Key, ['0' .. '9', #8, #13])) then begin Key := #0; Beep; end; end; procedure TForm1.Edit1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); begin Edit1.MaxLength:=10; //Bunu formdan yaparsanız daha mantıklı.. if length(Edit1.text) = 2 then begin Edit1.text := Edit1.text + '.'; Edit1.SelStart := 3; Edit1.SelLength := 0; end; if length(Edit1.text) = 5 then begin Edit1.text := Edit1.text + '.'; Edit1.SelStart := 6; Edit1.SelLength := 0; end; end;
Bu işlemi parasal alan için nasıl uyarlayabiliriz.

