oops... should have been: * To call the second form oForm=Thisform
do fom Form2 with oForm Then in the second form in the init *Init() Parameters toForm oCalling_Form = toform oCalling_Form.button1.Enabled = .F. -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Dave Crozier Sent: 30 July 2014 16:43 To: ProFox Email List Subject: RE: VFP6: Forms on top of forms... * To call the second form oObj=Thisform do fom Form2 with oForm Then in the second form in the init *Init() Parameters toForm oCalling_Form = toform oCalling_Form.button1.Enabled = .F. Dave -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Desmond Lloyd Sent: 30 July 2014 16:41 To: ProFox Email List Subject: Re: VFP6: Forms on top of forms... How do you pass it as an object? Regards, Desmond On 30 July 2014 10:28, Dave Crozier <[email protected]> wrote: > Either open the second form as modal or open the second form and pass > to it an object reference to the first form and then you can use the > reference to disable/enable anything on the calling form. > > Dave > > -----Original Message----- > From: ProFox [mailto:[email protected]] On Behalf Of Desmond > Lloyd > Sent: 30 July 2014 16:27 > To: ProFox Email List > Subject: VFP6: Forms on top of forms... > > Probably a very basic question, nevertheless.... > > Have a main form that opens up with buttons down at bottom. Click on > one and another form pops up with it's own set of button. Those work > fine, however this window is a bit smaller and you can still see the > original set of buttons from the original form. In my testing I have > discovered that the first set of buttons are still firing despite > having the other form displayed??? > > What do I need to do to disable the buttons from the original form. > Guess I could disable them on the fly, but had thought that by > defining the right window type etc. that the first set of buttons would be > disabled.... > > Suggestions/Thoughts? > > Regards, > Desmond > > > --- StripMime Report -- processed MIME parts --- multipart/alternative > text/plain (text body -- kept) > text/html > --- > [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/[email protected] ** 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.

