TFileNameEdit OnChange with non-synchronized FileName and Text
Original Reporter info from Mantis: FangQ
-
Reporter name: Qianqian Fang
Original Reporter info from Mantis: FangQ
- Reporter name: Qianqian Fang
Description:
Here is a simple test, drop on the form a TEdit, say Edit1, and a TFileNameEdit, say FileNameEdit1, and then set FileNameEdit1.OnChange to
procedure TForm1.FileNameEdit1Change(Sender: TObject);
begin
Edit1.Text:=FileNameEdit1.FileName;
end;
when running this, whatever string you typed in FileNameEdit1, Edit1 will be one key-stroke behind. If you use FileNameEdit1.Text, it will have the post-edited text.
Mantis conversion info:
- Mantis ID: 15295
- Version: 0.9.29 (SVN)
- Fixed in revision: 27930 (#d16d3ded)
- Target version: 1.0.0
- LazTarget: 1.0