[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTabControl.TabToPageIndex

Gets the real page index for the specified tab.

Declaration

Source position: comctrls.pp line 481

public function TCustomTabControl.TabToPageIndex(

  AIndex: Integer

):Integer;

Description

TabToPageIndex is an Integer function used to get the page index for the tab at the specified position. The tab index value in AIndex does not include any non-visible tabs. TabToPageIndex adjusts the index value to include any TCustomPage instances in Page with its TabVisible property set to False.

The return value contains the value specified in AIndex after adding any non-visible pages proper to the requested position.

No actions are performed in the method at design-time; all pages are visible on the designer surface.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.