I have created a custom drawn search bar for an app i am working on. see picture: http://www.diamonddrake.com/test/imgs/mySearch.JPG
when the user clicks on the google icon to the left. a little borderless form opens with custom drawn buttons that have icons for other search engines, you get the drift. only I am having an issue with dismissing it. I would like it to act like a standard context menu. so when I click on anything anywhere else, it will close. i tried setting the form's mouse down event to close it, and its captured property to true, this works... only the buttons on the form don't get their mouse enter events.
So I ask, what is the standard procedure for this kind of thing? and if their isn't one, what is a good solution?