I am writing delphi components. For some of them i would need the mouse click event in every mouse position - even when the mouse cursor is NOT over the client area of the control.
The events from TControl
(like procedure WMLButtonDown(var Message: TWMLButtonDown); message
WM_LBUTTONDOWN; procedure Click; override; ...)
are only triggered when the mouse is over the control. I am sure there is a possibility.
Once again my problem: Imagine a Combobox. The Combobox is closing the drop down list automatically when the user clicks the mouse SOMEWHERE on the screen. I have some components that look like combos (and should behave like them) but they are not derived from TCombobox. They for example open a TForm for the drop down list.
So - how can i close this TForm on any (somewhere on the screen) mouseclick ???
Thank you very much for your help
Technical University Vienna