RE: How to detect mouse clicks without an event handler?
"Mehul Parekh" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAGUJhZWwxYE69IhILLue1K8KAAAAQAAAAB46SwfIqAEKEP+/[email protected]> |
It is very much better if you use OnMouseDown event instead of using OnClick event. Otherwise you can use the windows message facility if you are aware of that. Below is the list of various message of mouse events. Try this All the best. TABLE 3.1. MOUSE EVENT MESSAGES. Message Description WM_LBUTTONDOWN The left mouse button has been pressed. WM_LBUTTONUP The left mouse button has been released. WM_LBUTTONDBLCLK The left mouse button has been double-clicked. WM_RBUTTONDOWN The right mouse button has been pressed. WM_RBUTTONUP The right mouse button has been released. WM_RBUTTONDBLCLK The right mouse button has been double-clicked. WM_MOUSEMOVE The mouse is being moved across the application window space. WM_MOUSEWHEEL The mouse wheel is being moved. -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Friday, September 03, 2004 3:30 AM To: [email protected] Subject: [Delphi-JEDI] How to detect mouse clicks without an event handler? Hello all, I wonder if anyone can offer me any advice. I am trying to use an ActiveX component on my form. The component is not equipped with an OnClick event/property. This means that an event handler cannot be attached. Trouble is, I need to detect mouse clicks on the component. I do not have the component source code to adapt. Could some transparent item be placed over it that could detect the clicks? If so, what? Thanks. [Non-text portions of this message have been removed] Yahoo! Groups Sponsor ADVERTISEMENT HYPERLINK "http://us.ard.yahoo.com/SIG=12929dvh8/M=295196.4901138.6071305.3001176/ D=groups/S=1705115362:HM/EXP=1094248813/A=2128215/R=0/SIG=10se96mf6/*htt p:/companion.yahoo.com"click here HYPERLINK "http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group s/S=:HM/A=2128215/rand=118866210" _____ Yahoo! Groups Links * To visit your group on the web, go to: HYPERLINK "http://groups.yahoo.com/group/Delphi-JEDI/"http://groups.yahoo.com/grou p/Delphi-JEDI/ * To unsubscribe from this group, send an email to: HYPERLINK "mailto:[email protected]?subject=Unsubscribe"Delp [email protected] * Your use of Yahoo! Groups is subject to the HYPERLINK "http://docs.yahoo.com/info/terms/"Yahoo! Terms of Service. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 8/27/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 8/27/2004 [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/i7folB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Delphi-JEDI/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/