WebPagePanel.SelectedPanelIndex
From Xojo Documentation
Property (As Integer )
aWebPagePanel.SelectedPanelIndex = newIntegerValue
or
IntegerValue = aWebPagePanel.SelectedPanelIndex
New in 2020r1
Supported for all project types and targets.
or
IntegerValue = aWebPagePanel.SelectedPanelIndex
New in 2020r1
Supported for all project types and targets.
The number of the currently selected panel.
Notes
To change the panel that is displayed, set this value. Modifying this value calls the PanelChanged event.
This is also how you change the displayed panel for the WebTabPanel control, which is subclassed from WebPagePanel.
Sample Code
This example uses a WebPopupMenu in a WebPagePanel to navigate to another panel. The example uses the selected item on the WebPopupMenu as the panel in the WebPagePanel to display.
PagePanel1.SelectedPanelIndex = PopupMenu1.SelectedRowIndex