General information
Category:
Coding, syntax & commands
Title:
Pageframe in a Pageframe. Help Please!!
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only