Can I shut the code for doubleclick off with code? lazarus / 61-Beginners ---------------------------------------------------------------------- JLWest · 2018-12-20 05:27 I wan't to use use doubleclick in a list box if I'm in a certian procedure. However when I exit the procedure I want to turn doubleclick off; Possible? ---------------------------------------------------------------------- CCRDude · 2018-12-20 06:47 Set "lb.OnDblClick := nil" to disable the handler, and set it to the method it has to enable it again. Or use a boolean flag to determine whether it should exit or not and query that on the beginning of the handler, exiting if set. ---------------------------------------------------------------------- jamie · 2018-12-21 22:50 Something tells me he is using a lot of Application.ProcessMessages in his code..... ---------------------------------------------------------------------- lucamar · 2018-12-21 23:07 Quote from: jamie on December 21, 2018, 11:50:09 pmSomething tells me he is using a lot of Application.ProcessMessages in his code..... Ha! I was thinking the same! ---------------------------------------------------------------------- JLWest · 2018-12-22 00:19 No I'm only using one inside a process loop of a listbox. I might be using it wrong;