donvittorio
Programmer
Hello,
I want to embed a TButton in a cell of a TStringGrid, which I have done okay. However, I have found that if I set the stringgrid as the button's parent, then the button's OnClick event handler does not get called when I click on the button with the mouse (although it does if I hit the return key when the button has focus). I can't figure out why this is, does anybody know?
I can work around it by defining a message handler and catching a left click on the button, but I'd rather get to the root of the problem if I can. Any help appreciated.
Thanks
Steve
I want to embed a TButton in a cell of a TStringGrid, which I have done okay. However, I have found that if I set the stringgrid as the button's parent, then the button's OnClick event handler does not get called when I click on the button with the mouse (although it does if I hit the return key when the button has focus). I can't figure out why this is, does anybody know?
I can work around it by defining a message handler and catching a left click on the button, but I'd rather get to the root of the problem if I can. Any help appreciated.
Thanks
Steve