My app runs as a plugin inside another windowed app. Thus, my window often doesn't have the focus. Now, if someone moves the mouse over a button/menu and clicks once, all it does is set focus to my window. Then (s)he needs to click again to get the actual button functionality.
This is a minor annoyance but I'd like to get rid of it. First I tried claiming focus whenever the mouse enters my dialog space, but this proved to be even more annoying. So what I'd like to do is repeat the mouse click, so it looks as though a single click both changed focus AND pressed the button.
Obviously I should ONLY do this when the click resulted into a SetFocus, otherwise it will run the button function twice.
Any suggestions?
Deeply and eternally indebted, David