I wanted to use my own buttons in TStringGrid with edit cells option. With example in Lazarus and some searches in Internet, I could do it. In fact it works sometimes and sometimes not: Both buttons are mixed, the original and my own button. I join the source code of a test. How could I avoid the mixing of the buttons which appears sometime ? It seems that when the aplicacation is build it will work. For ex: I delete the exe file and recompile, then it's OK. When I reexecute the exe file then buttons are mixed together.
Editing:
If I reexecute the exe file (out of Lazarus) it's work fine