Difference between revisions of "TPageControl"
From Lazarus wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
'''TPageControl''' [[image:tpagecontrol.png]] is a component that provides a container to hold pages, much like a real-world notebook. TPageControl is a descendant of [[TWinControl]] and is available under the [[Common Controls tab]] of the [[Component Palette]]. | '''TPageControl''' [[image:tpagecontrol.png]] is a component that provides a container to hold pages, much like a real-world notebook. TPageControl is a descendant of [[TWinControl]] and is available under the [[Common Controls tab]] of the [[Component Palette]]. | ||
− | Pages ([[TTabSheet]]s) from a TPageControl are accessible through its ''Pages'' property. Right-click on a TPageControl to show its context menu, and use 'Add Page' to create a new page. | + | Pages ([[TTabSheet]]s) from a TPageControl are accessible through its (non published) ''Pages'' property. Right-click on a TPageControl to show its context menu, and use 'Add Page' to create a new page. |
+ | |||
+ | [[File:component-TPageControl.png]] | ||
The current (active) page is accessible through the ''ActivePage'' property. | The current (active) page is accessible through the ''ActivePage'' property. |
Revision as of 14:06, 2 September 2016
TPageControl is a component that provides a container to hold pages, much like a real-world notebook. TPageControl is a descendant of TWinControl and is available under the Common Controls tab of the Component Palette.
Pages (TTabSheets) from a TPageControl are accessible through its (non published) Pages property. Right-click on a TPageControl to show its context menu, and use 'Add Page' to create a new page.
The current (active) page is accessible through the ActivePage property.
See also