TCustomEdit.TextChanged is fired twice if Text property is set
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
If you set the Text property of a TCustomEdit, TextChanged is called twice.
Steps to reproduce:
Crate a TCutomEdit derived class:
TMyEdit = Class(TCustomEdit)
protected
procedure TextChanged; override;
end;
procedure TMyEdit.TextChanged;
begin
DebugLn('TMyEdit.TextChanged');
inherited TextChanged;
end;
Create the control at runtime.
Do MyEdit.Text := 'MyEdit';
and see "TMyEdit.TextChanged" appear twice on the console.
If you type in the control, TextChanged is only called once.