Autor Beitrag
Flash106
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Di 22.03.05 23:59 
Hallo,

wie kann ich in einem EditFeld wo schon Text drinn steht das Zeichen hinter dem Cursor mit dem was ich eingebe überschreiben??
Danke schonmal!
Böser Borstel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 154



BeitragVerfasst: Mi 23.03.05 08:49 
Titel: Edit1KeyDown
Ich hoffe das hilft dir weiter.


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if (Key <> 0) and
    (Key <> 8) and
    (Key <> 37) and
    (Key <> 38) and
    (Key <> 39) and
    (Key <> 40) and
    (Edit1.SelLength = 0) then
    Edit1.SelLength := 1;
end;


Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.