> How can this be modified to intercept the display of a menu shown through ACTIVATE POPUP...?
application.HWND -- this window hosts VFP main menu. I think the same window may receive menu related messages for a menu created with DEFINE POPUP.
Unless user-defined menus are created in some kind of smart way, lke windowless VFP controls.
Try these steps:
- run the code from my previous message; this code will insert a custom object in the _screen -- _screen.AddObject
- run some code that defines a menu; meanwhile do not issue commands, like CLEAR ALL etc., that may remove that Custom object
- try ACTIVATE POPUP -- check if the custom object reacts in any way