JackSpratt
New Member
Progress version 11.6 on Windows.
I'm maintaining a legacy application that's using a mix of ADM and ADM2. One of the hardest parts is identifying which program I'm currently in. I'm having to resort to codebase searches and it's not an exact science. Particularly as each screen often has a plethora of tabs and sub programs.
So I'm trying to build in a way of identifying the active program on a hotkey. In the overarching menu program I've added a global hotkey which works beautifully, except that PROGRAM-NAME (1) is always the menu program, and not the active sub program.
Anyone got ideas how I can identify which program we're active in?
I'm maintaining a legacy application that's using a mix of ADM and ADM2. One of the hardest parts is identifying which program I'm currently in. I'm having to resort to codebase searches and it's not an exact science. Particularly as each screen often has a plethora of tabs and sub programs.
So I'm trying to build in a way of identifying the active program on a hotkey. In the overarching menu program I've added a global hotkey which works beautifully, except that PROGRAM-NAME (1) is always the menu program, and not the active sub program.
Anyone got ideas how I can identify which program we're active in?
Code:
ON CTRL-F7 ANWEHRE DO:
MESSAGE PROGRAM-NAME (1) VIEW-AS ALERT-BOX.
END.