You could always spin through the _SCREEN.Forms and reference your first form that way, too. Capturing "who called me" in the load has always worked for me.
Fred On Wed, Feb 20, 2013 at 10:08 AM, Kurt <[email protected]> wrote: > Thank you VERY Much for this Very interesting suggestion! Seems like there > should be a more direct route to accessing the properties of the other Form > - by, I shouldn't baulk at it - since, if you suggestion works - then I > should just Go With It! > > So - I'm going to try it out Right now. > > Thanks again, > -K- > > -----Original Message----- > From: ProfoxTech [mailto:[email protected]] On Behalf Of Fred > Taylor > Sent: Wednesday, February 20, 2013 11:56 AM > To: [email protected] > Subject: Re: The Trouble w/Windows... > > Add a property to your second form, named oCallingForm. In the Load of > your second form, you should be able to set this to _SCREEN.ActiveForm. > Your second form is not yet "there" so the _SCREEN.ActiveForm is the form > that called your second form, and your saving a reference to it. You can > then reference the first form in later methods of your second form with > thisform.oCallingForm.Height, etc. > > Fred > > > On Wed, Feb 20, 2013 at 9:47 AM, Kurt <[email protected]> wrote: > > > Thanks again Fred for your follow-ups. > > > > Yeah - no reason to DO the 2nd Form from within the 1st Form in something > > like an Init. In fact, its part of a Validate in the 1st Form - so, that > if > > a certain Validation fails - then it launches a type of Browse window to > > lookup a valid PO#. > > > > Now my problem is - even when I can now Get the Form name of the 1st Form > - > > when I am WITHIN the 2nd Form - I'm having problems accessing the Height > > value of the 1st Form. Still trying to get that working right now... > > > > -K- > > > > -----Original Message----- > > From: ProfoxTech [mailto:[email protected]] On Behalf Of Fred > > Taylor > > Sent: Wednesday, February 20, 2013 11:28 AM > > To: [email protected] > > Subject: Re: The Trouble w/Windows... > > > > Ok, I think I see what the problem is now. In order for the second form > to > > be limited to and show up in your first form, the DO FORM second has to > be > > issued by the first form in one of its methods, like form1.GotFocus, or > > from a command button. You can't issue the DO FORM in the form1.Init, > > .Load, or .Show as the form doesn't really exist yet (LISAG - Load, Init, > > Show, Activate, GotFocus). > > > > I just tried it it should work in the .Activate or .GotFocus of the first > > form to do a DO FORM second. > > > > Fred > > > > > > On Wed, Feb 20, 2013 at 9:06 AM, Kurt <[email protected]> wrote: > > > > > Tracy, > > > > > > Several things. > > > 1) I put in that Show Window based upon someone's suggestion. > > But, > > > I > > > DID just now take it out. > > > 2) You referred to "... base class of your forms". FYI - I'm > just > > > doing Forms - an SCX - not a Class - like a VCX. > > > 3) I think that in your Psuedo code/instructions in your other > > > e-mail, that you had the ShowWindow # settings Flip-Flopped! I followed > > > your > > > instructions - but, switched around the #1 & 2 settings - opposite from > > > what > > > you wrote - and - Voila! It works! The 2nd Form properly Floats WITHIN > > the > > > 1st Form - as I wanted it - and if you shove it aside - it disappears > > > within > > > the side of the 1st Form! Excellent indeed. Although, my initial code - > I > > > thought I pretty much had the same coding already. Will now analyze to > > see > > > what went wrong. > > > > > > Also, when I now run that WParent() function - it properly displays > name > > of > > > the 1st Form Name - from within the 2nd Form! > > > > > > So - just so you know. What I am attempting to do is make the 2nd Form > > run > > > in an "intelligent" manner. I need the 2nd form to "known" the > dimensions > > > of > > > the Form its running within. Then, I want the 2nd Form to Move towards > > the > > > Bottom of the area within the 1st Form. And, how much it moves will > also > > be > > > dependent and what is displayed in the 2nd Form - which must Shrink or > > Grow > > > depending on some variables & Text to be displayed in the 2nd Window. > So > > - > > > that's what I am working on next... > > > > > > Thanks again for ALL YOUR HELP - Much Appreciated!!! > > > > > > -K- > > > > > > -----Original Message----- > > > From: ProfoxTech [mailto:[email protected]] On Behalf Of > > Tracy > > > Pearson > > > Sent: Wednesday, February 20, 2013 10:52 AM > > > To: [email protected] > > > Subject: RE: The Trouble w/Windows... > > > > > > Kurt wrote on 2013-02-20: > > > > Hey Tracy - thanks for this extensive reply. Do I have to use "Show > > > Window" > > > > - well, I was just doing it to try and follow the suggestion by Fred > - > > > which > > > > I didn't originally use. At this point, I've been open to trying > > > anything > > > - > > > > just to try and get things to work. I'm hoping to push thru these > > > problems > > > > ASAP - since, its currently stopping me from making Major Progress > in > > > doing > > > > this whole System Conversion Utility that I have been working on... > > > > > > > > -K- > > > > > > Kurt, > > > > > > VFP prior to VFP 9 SP 2 had trouble with being able to change the form > > > caption on the fly on child windows. There was also display issues with > > > borders not correctly appearing in the Vista/Windows 7 Areo Glass > theme. > > > > > > One of the workarounds to this problem was to have a SHOW WINDOW in the > > > INIT > > > process. > > > > > > So, I ask again. Does the base class of your forms have this SHOW > WINDOW? > > > If > > > it does, this could be the root of your problem. > > > > > > > > > Tracy Pearson > > > PowerChurch Software > > > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAJCBkspUOWhcQ8+5XJHbu7L3fEWEcie5=k1qbounudsy9iw...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

