OnChange event couldn‘t be triggered correctly when using Memo1.ClearSelection lazarus / 31-LCL ---------------------------------------------------------------------- tomitomy · 2017-11-10 13:31 Hi, I have a problem again, In the code below, Button1 triggers the OnChange event correctly, but Button2 doesn't trigger the OnChange event, I think it's a Bug. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Memo1Change(Sender: TObject);begin  writeln(Now);end; procedure TForm1.Button1Click(Sender: TObject);begin  Memo1.SelStart := 2;  Memo1.SelLength := 3;  Memo1.ClearSelection;end; procedure TForm1.Button2Click(Sender: TObject);begin  Memo1.SelectAll;  Memo1.ClearSelection;end; Lazarus 1.8.0 RC4 GTK2 OS: Linux Mint MATE 64-bit ---------------------------------------------------------------------- ASerge · 2017-11-10 23:56 In Windows, Button2 trigger the OnChange event. ---------------------------------------------------------------------- tomitomy · 2017-11-11 01:46 Thank you Aserge, I have submitted the issue to the bug tracker forum: https://bugs.freepascal.org/view.php?id=32669