I'm newish to Delphi but here goes with my bit. Yesterday I had a problem with a mouse click event not being actioned. When I traced it, I found the grid I was on, was calling my exit grid event, and it was running code in there which was fulfilling a condition to set focus back to a certain cell on the grid. This setting focus, or something in the grid background code, seemed to "eat" the mouse event, i.e. not process it (I was trying to click on a quit button). I solved it by checking at the beginning of my exit grid event, with a statement: "If ActiveControl = Quitbtn then EXIT;". In this way none of my exit grid event code was processed and then it happily recognised and processed by QuitBtn click event.
Is something "eating" your mouse event like this? HTH Cheers Dave -----Original Message----- From: Alistair George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 20 November 2002 13:07 To: Multiple recipients of list delphi Subject: Re[2]: [DUG]: Mainform.OnMousedown OnClick events not happening And before I cried HELP (quietly, before having a beer) I checked that the mouse was in a non-client area and on the mainform. I still cannot see any control that inherits the events unless as a component they can inherant the parent by design? Al+ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/