PagePanel.SelectedPanelIndex

From Xojo Documentation

Property (As Integer )
aPagePanel.SelectedPanelIndex = newIntegerValue
or
IntegerValue = aPagePanel.SelectedPanelIndex

New in 2019r2

Supported for all project types and targets.

The number of the currently selected panel. The first panel is number zero.

Notes

To change the panel that is displayed, set this value. Modifying this value calls the Change event.

This is also how you change the displayed panel for the TabPanel control, which is subclassed from PagePanel.

Example

This example uses a PopupMenu in a PagePanel to navigate to another panel. The example uses the selected item on the PopupMenu as the panel in the PagePanel to display.

PagePanel1.SelectedPanelIndex = PopupMenu1.SelectedRowIndex