PagePanel

From Xojo Documentation

Revision as of 13:44, 24 October 2018 by PLefebvre (talk | contribs) (See Also)

Class (inherits from RectControl)

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

Events
Change DragExit MouseEnter
Closing DragOver MouseExit
ConstructContextualMenu DropObject MouseMove
ContextualMenuAction KeyDown MouseWheel
DragEnter KeyUp Opening


Properties
Active fa-lock-32.png LockRight TabIndex
AllowAutoDeactivate LockTop Tooltip
AllowTabStop MouseCursor Top
Enabled MouseX fa-lock-32.png Transparent
Handle fa-lock-32.png MouseY fa-lock-32.png TrueWindow fa-lock-32.png
Height Name fa-lock-32.png Value
Index fa-lock-32.png PanelCount fa-lock-32.png Visible
Left PanelIndex Width
LockBottom Parent Window fa-lock-32.png
LockLeft Scope fa-lock-32.png


Methods
AcceptFileDrop Append Invalidate
AcceptPictureDrop Close Refresh
AcceptRawDataDrop DrawInto Remove
AcceptTextDrop Insert SetFocus

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.

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.

Examples

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.