[Solved ] Timagelist.Onchage does not trigger when adding images? lazarus / 31-LCL ---------------------------------------------------------------------- jamie · 2018-01-26 03:30 Isn't this event suppose to trigger when adding, deleting images ? Does not seem to do anything here. laz 1.8.0 Windows. ---------------------------------------------------------------------- balazsszekely · 2018-01-26 04:33 The following code works fine with Lazarus Trunk/FPC 3.0.4: 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.Button1Click(Sender: TObject);var  Bmp: TBitmap;begin  Bmp := TBitmap.Create;  try    Bmp.Width := 16;    Bmp.Height := 16;    Bmp.Canvas.Brush.Color := clRed;    Bmp.Canvas.FillRect(0, 0, 16, 16);    ImageList1.Insert(0, Bmp, Bmp);  finally    Bmp.Free;  end;end; procedure TForm1.Button2Click(Sender: TObject);begin  ImageList1.Delete(0);end; procedure TForm1.ImageList1Change(Sender: TObject);begin  ShowMessage('changing');end; OnChange is triggered both on Button1 and Button2 click. ---------------------------------------------------------------------- jamie · 2018-01-26 21:56 I must apologize, it seems I set the OnChange event to the wrong TimageList, not the one I was actually working with..  Sorry about that, disaster is averted ! ---------------------------------------------------------------------- balazsszekely · 2018-01-26 22:03 No problem @jamie. I'm glad it's working.