From Xojo Documentation

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

Class (inherits from RectControl)

Used to organize controls on hidden panels. Only the controls on the current panel are visible to the user. This control does not display a user interface at run-time.

Change DragExit MouseEnter
Close DragOver MouseExit
ConstructContextualMenu DropObject MouseMove
ContextualMenuAction KeyDown MouseWheel
DragEnter KeyUp Open
Active fa-lock-32.png LockLeft Scope fa-lock-32.png
AllowAutoDeactivate LockRight SelectedPanelIndex
AllowTabStop LockTop TabIndex
Enabled MouseCursor Tooltip
Handle fa-lock-32.png MouseX fa-lock-32.png Top
Height MouseY fa-lock-32.png Transparent
Index fa-lock-32.png Name fa-lock-32.png TrueWindow fa-lock-32.png
LastAddedPanelIndex fa-lock-32.png PanelCount fa-lock-32.png Visible
Left PanelIndex Width
LockBottom Parent Window fa-lock-32.png
AcceptFileDrop AddPanel Invalidate
AcceptPictureDrop AddPanelAt Refresh
AcceptRawDataDrop Close RemovePanelAt
AcceptTextDrop DrawInto SetFocus


The PagePanel control allows you to add controls to panels, just as you add controls to TabPanels. The difference is that the PagePanel control itself is not visible in your built application. Only the controls on the currently selected panel are visible. You change the displayed panel by changing the SelectedPanelIndex property. PagePanels cannot be embedded inside PagePanels.

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

In the IDE, you can add, insert, delete, reorder and navigate from panel to panel, 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.


The following line of code moves a ListBox from its current panel to the second panel of a PagePanel.

ListBox1.PanelIndex = 1

See Also

TabPanel control; RectControl class.