Thank you. That worked. I wasn't sure how to set the focus back to the main window.
However, I've now realized a small flaw.
If I click on the button (mousedown, mouseup), it works fine.
If I click on the button (mousedown), but then drag the mouse off of the button and only then release the mouse (mouseup), the focus stays on the button.
Do you know how I may handle that situation?
However, I've now realized a small flaw.
If I click on the button (mousedown, mouseup), it works fine.
If I click on the button (mousedown), but then drag the mouse off of the button and only then release the mouse (mouseup), the focus stays on the button.
Do you know how I may handle that situation?