Page 1 of 1

Child window soft dismiss?

Posted: Mon Aug 12, 2019 11:57 am
by ScottM
I did some searching on the forum, but didn't spot an answer. Maybe I used the wrong terms?

I have a childwindow dialog up with OK / Cancel buttons. But if the user clicks the back button on the browser, the childwindow stays up. Is there a way to just implement a soft dismiss on the child window if it loses focus? I added a handler for LostFocus, but it gets triggered when controls get focus in the window.

OnDeactivated per this link: ... outside-it

would seem to be useful, but I don't see it available.

I'm hoping there is already a magic formula and I just didn't search well enough.