Was this helpful?
PageDeactivated Event
The PageDeactivated event is one of the three events that get generated when the user clicks a new tab.
This event has the following syntax:
on pagedeactivated [tabpagename]
tabpagename is the name of a TabPage that, when deactivated, triggers 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
The PageDeactivated event can be used to make sure that the TabPage is in a consistent state, and test whether any actions need to be taken based on changes to the page.
If a resume statement is used within a PageDeactivated event this causes a cancellation of the PageChanged event, and the same TabPage remains mapped.
More information:
Last modified date: 06/25/2024