Vcl.ComCtrls.TPageControl.SelectNextPage
Delphi
procedure SelectNextPage(GoForward: Boolean; CheckTabVisible: Boolean = True);
C++
void __fastcall SelectNextPage(bool GoForward, bool CheckTabVisible = true);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TPageControl |
Description
Changes the ActivePage to the first visible page that is before or after the currently active page.
Use SelectNextPage to select the page next to the currently active page.
If the GoForward parameter is true, SelectNextPage selects the first page after ActivePage; if GoForward is false, SelectNextPage selects the first page previous to ActivePage.
If CheckTabVisible is true, SelectNextPage only considers pages with their TabVisible property set to true.
Note: To select a page at design-time, right-click the TPageControl and choose Previous Page or Next Page.
See Also
Code Examples