TdxCustomStatusBar.GetPanelAt(Integer,Integer) Method
In This Article
Returns the current status bar’s panel that contains the specified point.
#Declaration
Delphi
function GetPanelAt(X: Integer; Y: Integer): TdxStatusBarPanel; virtual;
#Parameters
Name | Type |
---|---|
X | Integer |
Y | Integer |
#Returns
Type |
---|
Tdx |
#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