Preface: wxWidgets 2.8.10 project on Windows.
I have a main application window (controls in a frame). If the user presses a hotkey, a pop-up window (implemented as a wxDialog) shows centered within the parent.
The behavior I want is if the user clicks outside of the pop-up window, on to the parent window, then the pop-up will dismiss, ala EndModal(wxID_CANCEL).
But if the user clicks outside the pop-up into another app, the pop-up should stay there.
Any thoughts?