TdxCustomStatusBar.GetPanelAt(Integer,Integer) Method
Returns the current status bar’s panel that contains the specified point.
Declaration
function GetPanelAt(X: Integer; Y: Integer): TdxStatusBarPanel; virtual;
Parameters
Name | Type |
---|---|
X | Integer |
Y | Integer |
Returns
Type |
---|
TdxStatusBarPanel |
Remarks
The GetPanelAt function returns the current status bar’s panel that contains the point whose coordinates are specified by the X and Y parameters. If the specified point does not correspond to a status bar panel from the Panels collection, this function returns nil.
Use this method when handling an event that can determine the X and Y parameters, for instance, the OnMouseDown or OnMouseUp event.
See Also