Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe in a Pageframe. Help Please!!
Message
From
07/02/2008 07:12:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Pageframe in a Pageframe. Help Please!!
Miscellaneous
Thread ID:
01290327
Message ID:
01290327
Views:
58
I have a parent Pageframe with 2 pages, and on page2 of that, I have another pageframe (call it the child pageframe) also with 2 pages.

Based on what the user chooses on certain controls of Page1 of the parent pageframe, when they switch to page2 of the parent, I need to set the activepage of the child pageframe to its page1 or page2.

The code to set the childpageframe.activepage property is called in the parentpageframe.page2.activate() event. So that is causing the activate() event of the target child page to fire (which it should), but also, because focus has passed from parent.page1 to parent.page2, that seems to be firing the activate event of the current child page AGAIN after my code has been run. So basically, the child pageframe.pagex.active() is firing twice, once by my custom code in parentpageframe.page2.activate(), and once because of the focus change to parentpageframe.page2.

The real pproblem is that I need to know if the childpageframe.pagex.activate() event is firing because of the user switching between child pageframe pages, or becuase they have switched from parent page1 to parent page2.
Next
Reply
Map
View

Click here to load this message in the networking platform