PagePanel.Value

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

Supported for all project types and targets.

The number of the currently selected panel (page/tab). The first panel is number zero.

Notes

To change the panel (page/tab) that is displayed, set this value. This is also how you change the displayed panel for the TabPanel control, which is subclassed from PagePanel. Altering this value calls the PagePanel.Change event.

Example

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

PagePanel1.Value = PopupMenu1.ListIndex