[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Gets the position for the band under the mouse pointer.
Source position: comctrls.pp line 2636
public procedure TCustomCoolBar.MouseToBandPos( |
X: Integer; |
Y: Integer; |
out ABand: Integer; |
out AGrabber: Boolean |
); |
X |
|
Horizontal coordinate for the mouse. |
Y |
|
Vertical coordinate for the mouse. |
ABand |
|
Position for the band under the mouse pointer, or -2147483648 when not over a band. |
AGrabber |
|
Indicates if the mouse pointer is over the grabber for the band. |
MouseToBandPos is a method used to get the position for the band under the specified mouse coordinates.
ABand is an Integer output parameter with the position for the band under the mouse pointer. It can contain an ordinal position in the visible bands for the control, and can be in the range 0..Bands.Count-1. The upper limit may be smaller if any of the bands have their Visible property set to False.
ABand may contain a negative value, defined in the cNewRowAbove and cNewRowBelow constants, that represent the unused space above or below the bands on the control.
ABand is set to -2147483648 (the lowest value for an Integer) if the mouse pointer is positioned over the background for the control and not one of its bands.
AGrabber is a Boolean output parameter which indicates if the mouse pointer is positioned over the grabber (or gripper) for the band in ABand.
|
Collection with the bands defined for the control. |
|
|
Allows the control, and all of its children, to be displayed or hidden. |
|
Version 4.0 | Generated 2025-05-03 | Home |