Kevin Cully wrote:
> VFP 9 form with a pageframe with 2 pages.
>
> I want to call a method when a user is leaving the second page, and
> clicking on the first page.  I don't want to call this method when the
> form is losing focus, in the situation where the user is clicking onto
> another form.
>
> How would I do this?  THISFORM.pgfForm.Click()?  Is there a
> THISFORM.pgfForm.ChangeOfPage() type of event?
>
> Thanks.
That's gonna be tricky.

You could create a logical property on the container that could only be 
set by the first page's Click Event (perhaps you need the MouseDown 
event -- this is untested, just typing out loud). This property is 
cleared/reset any time the first page is activated.

In theory, when the second page's Deactivate is fired, you could test 
for this logical property and run the method.

Bill Anderson





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://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.

Reply via email to