Put the provided code into screenmethods.prg and customize oScr.RightClick. Than add to your main program.
_SCREEN.NewObject("oSH","ScreenHook","screenmethods.prg")
SET PROCEDURE TO screenmethods ADDITIVE
_SCREEN.AddObject("oSH","ScreenHook")
Don't forget to commnet out all those WAIT commands in the ScreenHook class.
>Sergey,
>
>I really appreciate the link over to fox.wikis, but I have been studying this page for a long time and I just don't understand how to implement the ScreenMethods.prg program.
>
>Am I suppose to run that code in my startup and customize, let's say the oScr.RightClick method for my own use? I don't understand where in my code the ScreenMethods.prg is suppose to run.
>
>>See how you can access screen events at
http://fox.wikis.com/wc.dll?Wiki~ScreenMethods.
>>
--sb--