Sergey,
Thanks so much for that additional info. That cleared it up for me and I now I have a RightClick() method on my main screen that launches my shortcut menu called mnushort.mpr. However, there is one little question on that. (hope I can ask this within this thread.)
One of the choices on that shortcut menu is to run my main "Navigator" form. I launch it the same way on both the shortcut menu and my main menu, "DO FORM navigator." In the Load event of this form I have the following code to prevent two instances of the form from being created:
IF TYPE("Navigator") = "O" and !ISNULL(Navigator)
Navigator.Show()
RETURN .F.
ENDIF
The form is recognized as an "Object" when launched from the Main menu but not from my Shortcut menu. Why would that be?
>Put the provided code into screenmethods.prg and customize oScr.RightClick. Than add to your main program.
>_SCREEN.NewObject("oSH","ScreenHook","screenmethods.prg")
>
>* For VFP3 & 5:
>SET PROCEDURE TO screenmethods ADDITIVE
>_SCREEN.AddObject("oSH","ScreenHook")
Don't forget to commnet out all those WAIT commands in the ScreenHook class.
>