TWebEdit onChange event not fired when TWebEdit.Clear is run

Hi,

Like in the topic, when I do TWebEdit.Clear the onChange event is not fired.
Project for repro the problem.
onchange.zip (1.4 MB)

Our principle is to not trigger events for programmatic changes, so one can differentiate between UI event causes and programmatic causes and to not cause unexpected side event handling for programmatic changes.

Ok ... in this case is it good idea do this in this way?

Begin
webeditobject.Clear;
webeditobject.OnChange(webeditobject);
End;

I'd rather do:

  1. write a method: mychangehandler(edit: TWebEdit);
  2. call
    edit.Clear;
    mychangehandler(edit);
  3. from FormEditChange()
    call : mychangehandler(TWebEdit(Sender));

Ok ... thx for the hint.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.