RectControl → Control → Object

PagePanel Class

Similar to the TabPanel control, but does not include tabs (or any other visual indicator) for navigating to different pages. The TabPanel is subclassed from the PagePanel.

Events
Change

Properties
PanelCount
Value

Methods
Append
Insert
Remove

# Notes

The PagePanel control allows you to add controls to pages, just as you add controls to tab panels in a TabPanel. The difference is that the PagePanel control itself is not visible in your built application--only the controls on the currently selected page are visible. You change the displayed page by changing the value of the Value property. PagePanels cannot be embedded inside PagePanels. The following line of code moves a ListBox from its current panel to the second panel of a PagePanel.

ListBox1.PanelIndex=1

You get or set the page on which a control is located via the PanelIndex property of the Control class. The first page is numbered zero.

In the IDE, you can add, insert, delete, reorder and navigate from page to page, just like a TabPanel. When building an interface using the PagePanel, you can take advantage of the Control Hierarchy, discussed in the section on the RectControl object.

# See Also

TabPanel control; RectControl class.