5. Events : PageChanged Event
 
Share this page                  
PageChanged Event
The PageChanged event is one of the three events that get generated when the user clicks a new tab within a TabFolder.
This event has the following syntax:
on pagechanged [tabfoldername]
tabfoldername is the name of a TabFolder upon which changing pages activates this event loop.
The TargetPageIndex attribute is the new page index if the page change succeeds.
Usage: The events occur in this order:
1. PageDeactivated Event for the TabPage being mapped out
2. PageChanged Event for the TabFolder
3. PageActivated Event for the TabPage being mapped in
When the user selects a new page, either by clicking the tab or using the keyboard, a PageChanged event is triggered. The old TabPage is unmapped, and the new TabPage is mapped. The user can now start operating on the new page.
More information:
TargetPageIndex Attribute (see page TargetPageIndex Attribute)