Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Ulhas Amrite
  Where is Ulhas Amrite?
 Pune
 India
 Ulhas Amrite
 Tags
Subject: RE: Assingning a key to close a form
Thread ID: 143671 Message ID: 143781 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Friday, August 31, 2007 3:26:11 PM         
   


> >
> > Ulhas,
> > I am not sure what you do in that class. First WHY you need timer? Also maybe
> > That IF didn't work:
> >
> >
> > IF THIS.PARENT.PARENT.HEIGHT < (hcnt/5) OR THIS.PARENT.PARENT.WIDTH < wcnt/5
> > 	THIS.PARENT.PARENT.RELEASE()
> > ENDIF
> > 

> > Did you check THIS.PARENT.PARENT.HEIGHT and THIS.PARENT.PARENT.WIDTH
> > What is THIS.PARENT.PARENT? some container? The form itself? If this is the form Why not use thisform?
> > The way you code it you always must put that class directly on the form level. What will happen if you put it in some container like PageFrame?
> >
> >
> > -----------------
> > Borislav Borissov
> >
> > Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
> > The only thing normal about database guys is their tables.
>
> Please drop this class on a form. clock the exit button. and see the effect. The form minimises and then closes. Parent refers to the form on which the exit button appears.
>
> Ulhas Amrite

Ulhas,

I believe that Borislav was trying to tell you how to make this class more generic. If you are using This.Parent.Parent to get to the form object, you would be better off using ThisForm instead. Try an experiment. Create a form, drop a container onto the form, and then drop your class onto that container. You will see what Borisav means.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

Assingning a key to close a form Posted by FoxGuy Degante @ 8/30/2007 7:57:10 PM
RE: Assingning a key to close a form Posted by Borislav Borissov @ 8/30/2007 8:01:03 PM
RE: Assingning a key to close a form Posted by Ulhas Amrite @ 8/31/2007 8:40:54 AM
RE: Assingning a key to close a form Posted by Borislav Borissov @ 8/31/2007 9:18:05 AM
RE: Assingning a key to close a form Posted by Ulhas Amrite @ 8/31/2007 10:10:26 AM
RE: Assingning a key to close a form Posted by Ken Murphy @ 8/31/2007 3:26:11 PM
RE: Assingning a key to close a form Posted by Borislav Borissov @ 8/31/2007 3:50:48 PM
RE: Assingning a key to close a form Posted by Ulhas Amrite @ 9/3/2007 2:49:11 PM
RE: Assingning a key to close a form Posted by Ken Murphy @ 9/3/2007 2:57:20 PM
RE: Assingning a key to close a form Posted by Willson de Veas @ 8/31/2007 12:44:10 AM