PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Determine previous control that had focus?  (Read 1088 times)

MikeinFL

  • Silver Member
  • ***
  • Posts: 35
    • View Profile
Determine previous control that had focus?
« on: September 16, 2020, 10:22:01 AM »
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.

« Last Edit: September 16, 2020, 11:08:27 AM by MikeinFL »

EVa

  • Gold Member
  • ****
  • Posts: 54
    • View Profile
    • EDIAS
Re: Determine previous control that had focus?
« Reply #1 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-

MikeinFL

  • Silver Member
  • ***
  • Posts: 35
    • View Profile
Re: Determine previous control that had focus?
« Reply #2 on: September 16, 2020, 11:07:59 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!