I am using a named browse window to display detail records with an 'in Screen' parm. I have the following code in the program (which I obtained from here):
DEFINE CLASS MyHook AS Custom
oScreen = _Screen
PROCEDURE oScreen.Resize && attach VFP code to object's
&& event when this class is
&& initialized
* your code goes here
ENDPROC
ENDDEFINE
* Main program
_Screen.AddObject("oHook","MyHook"
&& now screen resize
&& event captured...
I have not gotten the oScreen.Resize procedure to fire and can't figure out why. Just guessing, the code is not in the correct sequence. The current sequence is:
Define the named window.
execute the AddObject.
The class is defined at the tail end of all code.
There is probably some lunacy involved but I useally have a workround for that condition. It isn't working this time. Any suggestions would be greatly appreciated.
Thanks
Bill
DEFINE CLASS MyHook AS Custom
oScreen = _Screen
PROCEDURE oScreen.Resize && attach VFP code to object's
&& event when this class is
&& initialized
* your code goes here
ENDPROC
ENDDEFINE
* Main program
_Screen.AddObject("oHook","MyHook"
&& event captured...
I have not gotten the oScreen.Resize procedure to fire and can't figure out why. Just guessing, the code is not in the correct sequence. The current sequence is:
Define the named window.
execute the AddObject.
The class is defined at the tail end of all code.
There is probably some lunacy involved but I useally have a workround for that condition. It isn't working this time. Any suggestions would be greatly appreciated.
Thanks
Bill