How to redirect click events to my frame.
Posted on 2006-05-22
How can I make sure that a click anywhere in a form will be handled by a TFrame descendant that I am placing on a form? I am using a frame to trigger a TListBox to pop up as a suggestion list. At present, if the list box is showing and the user clicks on a speedbutton, the OnExit events I'm using to free the listbox, aren't triggered.
I've noticed that combo boxes seem to direct all clicks to themselves. If the drop-down part is showing, you have to click twice to press a speed button. The first click releases the form from the grip of the combo box, and the following one does what you want. A solution like that would be good enough.