DesktopTabPanel.AddPanelAt

From Xojo Documentation

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

DesktopTabPanel.AddPanelAt(index as Integer, name As String)

New in 2021r3

Supported for all project types and targets.

Adds a new panel at the specified position using the name as the tab caption. The first panel is numbered zero.

Example

The following code adds a panel as the first tab:

TabPanel1.AddPanelAt(0, "First")