Hi
The AdvEdit.OnChange triggered 2x, when delete the text with backspace key.
If I use the delete key for delete the text, triggered only 1x !
It's a standard AdvEdit with standard properties just put a form one.
WIN7, DELPHI X, AdvEdit 3.1.0.1
In TMS CP 6.8.2.0 the problem still.
Only if use delete button on keyboard, and clear the whole text.
I retested this here 3.1.1.1 but could not see the problem.
Dropped a default TAdvEdit on the form and added the code:
procedure TForm1.AdvEdit1Change(Sender: TObject);
begin
listbox1.Items.Add('change');
end;
but not with backspace and not with DEL key, I could see a double triggered OnChange
Yes, AdvEdit 3.1.1.1.
Yes, drop a AdvEdit to a form.
Yes, set the AdvEdit1Change :
Memo1.Lines.Add(DateTimeToStr(now)+' '+AdvEdit1.Text);
AdvEdit1.text='AdvEdit1
And use a BackSpace, but don't clear whole text, only 1 character.
display : AdvEdit
backspace
display : AdvEdi
...
display : A
backspace
and here triggered 2x, when the last character deleted by backspace key
Thanks for this detail. What was not clear from the original description was that this only hapens when just the last char was deleted. We have now traced & solved this. Next update will address this.