Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Aug : Global onclick for application

www.cryer.info
Managed Newsgroup Archive

Global onclick for application

Subject:Global onclick for application
Posted by:"Lee J Cook" (lee.co..@kwikhols.co.uk)
Date:Thu, 11 Aug 2005 10:39:36 +0100

Hi

I am using Delphi 6 and what I want to do is as follows:-

I have a button on my main form which when clicked it brings up a popup
calendar. If the user clicks anywhere else on the form or any other controls
on the form i need to hide the popup calendar. Is there a way to globally
check if a mouse button has been clicked regardless of where the mouse
pointer is so I know to hide my popup calendar so i don't have to have the
code in every onclick event on every component or form.

Thanks in advance a code snip would be great

Lee

Info

Replies:

www.cryer.info
Managed Newsgroup Archive