TStatusBar.GetPanelIndexAt function
Gets the ordinal position for the panel at the specified coordinates.
Declaration
function GetPanelIndexAt(X: Integer; Y: Integer): IntegerArguments
X | Horizontal coordinate to locate in the Panels for the status bar. |
Y | Vertical coordinate to locate in the Panels for the status bar. |
Function result
Ordinal position for the status panel, or -1 when no panel is located at the specified coordinates.
Description
GetPanelIndexAt gets the ordinal position for the panel at the
specified coordinates. The return value is
-1 when
Panels
have not been defined in the status bar. No actions are performed in the
method when Panels is empty.
GetPanelIndexAt uses the display rectangle for the control to determine in the specified coordinates are within one of the Panels defined for the control. When True, each of the items in the Panels collection are examined to determine if the point is within a specific panel. The ordinal position for the panel is assigned as the return value.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
