DesktopPagePanel.AddPanelAt
From Xojo Documentation
Method
DesktopPagePanel.AddPanelAt(Index as Integer)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
Adds a new panel at the specified position. The first panel is numbered zero.
Example
The following code adds a panel at position 1.
PagePanel1.AddPanelAt(1)