JVCL Help:TJvCustomPageList.FindNextPage
JVCL Help: TJvCustomPageList.FindNextPage Method
Search in JVCL Help
Search in all projectsSummary
Returns the page in the page list control before or after a specified page.
Pascal
functionFindNextPage(CurPage: TJvCustomPage; GoForward: Boolean; IncludeDisabled: Boolean): TJvCustomPage;
Parameters
Parameters | Description |
CurPage: TJvCustomPage | The page where the search starts. |
GoForward: Boolean | Set to true to search forward or to false to search backwards in the Pages array. |
IncludeDisabled: Boolean | Set to true if you want to include disabled pages in the search, set to false to only include enabled pages. |
Return Value
Returns the found page or nil if no matching page was found.
Description
Call FindNextPage to locate a page in the page list control by its position relative to the page specified by the CurPage parameter. If the GoForward parameter is true, FindNextPage returns the next page in the page list control after CurPage. If GoForward is false, FindNextPage returns the previous page. If CurPage is not a page in the page list control, FindNextPage returns the first page when GoForward is true or the last page when GoForward is false. If GoForward is true and CurPage is the last page in the page list control, FindNextPage returns the first page. If GoForward is false and CurPage is the first page in the page list control, FindNextPage returns the last page. When IncludeDisabled is true, FindNextPage returns the next page even if it is disabled, if IncludeDisabled is false, FindNextPage returns the next enabled page.
See Also
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page