Difference between revisions of "DesktopTabPanel.AddPanelAt"

From Xojo Documentation

(Created page with "N/A")
 
 
Line 1: Line 1:
N/A
+
{{MethodBox
 +
| name=AddPanelAt
 +
| owner=[[DesktopTabPanel]]
 +
| ownertype=class
 +
| scope=public
 +
| parameters=index as [[Integer]], name As [[String]]
 +
| platform=all
 +
| newinversion=2021r3
 +
}}
 +
{{Description
 +
|text  = 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:
 +
<rbcode>
 +
TabPanel1.AddPanelAt(0, "First")
 +
</rbcode>
 +
 
 +
[[Category:API 2.0]]

Latest revision as of 20:22, 23 July 2021

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")