[Solved] TImage Click event not firing lazarus / 21-General ---------------------------------------------------------------------- nikel · 2023-11-21 18:07 Hello, I'm trying make a Select directory button but click event is not firing. I also tried MouseDown event. Here's my code: 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.ExportDialog_ImgClick(Sender: TObject);var  ChosenDirectory    : string;   Config             : PConfig;begin  ...end; How can I create custom button for directory selection? ---------------------------------------------------------------------- KodeZwerg · 2023-11-21 20:23 All we see is an empty method, to find out why it is not working we should have a sample project. Without knowing if you have registered method correct etc.... ---------------------------------------------------------------------- nikel · 2023-11-22 11:50 Thank you for your reply. I attached my project. ---------------------------------------------------------------------- dseligo · 2023-11-22 13:16 Problem is that ExportDialog_Img (other images also) is not in group box Export_Gbx, Form1 is their parent. Cut ExportDialog_Img, click on group box, and then paste it. After that it will work. ---------------------------------------------------------------------- KodeZwerg · 2023-11-22 13:35 Quote from: dseligo on November 22, 2023, 02:16:28 pmProblem is that ExportDialog_Img (other images also) is not in group box Export_Gbx, Form1 is their parent. Cut ExportDialog_Img, click on group box, and then paste it. After that it will work. You was faster, I just fixed top image ---------------------------------------------------------------------- nikel · 2023-11-22 14:26 Thanks for the helps. It worked fine after I changed parent.