Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button in a stringgrid

Status
Not open for further replies.

donvittorio

Programmer
Jul 17, 2003
122
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top