Determine previous control that had focus?

Started by MikeinFL, September 16, 2020, 10:22:01 AM

Previous topic - Next topic

MikeinFL

I looked and can find how to know the previous control that had focus? 

Have an exit button that will ask "Abort?" and if No will return to the last multi_line or control, but now the exit button has focus.


EVa

You can make that button a 'signal only' button so the focus doesn't change.  And you can check MSE - position 25,2 contains the object that lost focus.

-Eric-

MikeinFL

Quote from: EVa on September 16, 2020, 11:01:45 AM
You can make that button a 'signal only' button so the focus doesn't change.  And you can check MSE - position 25,2 contains the object that lost focus.

-Eric-

That did it, thanks!