Wrong TEdit.Modified behavior?
Original Reporter info from Mantis: Bulba
-
Reporter name: Sergey Bulba
Original Reporter info from Mantis: Bulba
- Reporter name: Sergey Bulba
Description:
In my old programs on Delphi I'd used "TEdit.Modified" property to detect kind of changing: manual (typing from keyboard) or run-time (Edit1.Text := 'some text').
Steps to reproduce:
Place Edit1 on Form1 in new project and write OnChange handler like:
procedure TForm1.Edit1Change(Sender: TObject);
begin
if Edit1.Modified then
begin
//Section1: do analysis of manual Edit1.Text changing
end
else
begin
//Section2: was programmatic changing like Edit1.Text := 'some text'
end;
end;
to ensure, that Section2 is never run in Lazarus, only in Delphi
Additional information:
Of course, it can be Delphi bug, and I must fix my old programs instead of Lazarus-bug reporting :) Sorry, if it is...
Mantis conversion info:
- Mantis ID: 25666
- OS: Windows
- OS Build: xp,7
- Build: 43696
- Platform: win32
- Version: 1.2.0RC2
- Fixed in revision: r45617 (#08e38d37)
- Monitored by: » etrusco (Flávio Etrusco)