Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Karben Selim Mejia
  Where is Karben Selim Mejia?
 San Pedro Sula
 Honduras
 Karben Selim Mejia
 To: Michael Gill
  Where is Michael Gill?
 Flora
 Illinois - United States
 Michael Gill
 Tags
Subject: RE: Hook into form resize?
Thread ID: 25129 Message ID: 25172 # Views: 28 # Ratings: 0
Version: Visual FoxPro 7 Category: Forms
Date: Thursday, June 26, 2003 4:57:35 PM         
   


> Is there a way to hook into the forms resize event without manually adding code to the resize event??
>
>
> ---
>
> www.foxite.com - The Home of the Visual FoxPro Experts

maybe this could help you, it isn't with the form, but i know you'll work it out
DEFINE CLASS MyHook as custom
	oHookedObject = m.lcToBeHooked
	procedure oHookedObject.resize
	     messagebox("Eureka, it works")
	endproc
ENDDEFINE


and then
private lcToBeHooked
m.lcToBeHooked = _Screen
set procedure to hook.PRG
_Screen.AddObject('MyObjectHook','MyHook')  


Karben Selim Mejia

Life is a bad teacher, It puts you the test first, then teaches you the leasson.
Honduras, Central America
The very centre of the world



COMPLETE THREAD
Hook into form resize? Posted by Michael Gill @ 6/25/2003 10:10:14 PM
RE: Hook into form resize? Posted by mike castillo @ 6/26/2003 1:56:58 AM
RE: Hook into form resize? Posted by Karben Selim Mejia @ 6/26/2003 4:57:35 PM
RE: Hook into form resize? Posted by Boudewijn Lutgerink @ 6/29/2003 5:19:13 AM
RE: Hook into form resize? Posted by Steve Bloodsworth @ 6/30/2003 4:45:04 PM
RE: Hook into form resize? Posted by Boudewijn Lutgerink @ 7/1/2003 8:40:42 AM