Returns the index of the button indicated by the coordinates of a point on the panel.
function ButtonAtPos(Pos: TPoint): integer;
Use ButtonAtPos to detect if a button exists at a particular point in the underlying panel.
The Pos parameter is the point in the panel in window coordinates.
If Pos is out of buttons coordinates, ButtonAtPos returns -1, otherwise it returns absolute index of underlying button.
ButtonAtPos is used internally for TCustomBtnPanel purposes, i.e. in TCustomBtnPanel.MouseDown and TCustomBtnPanel.WMMouseMove procedures to determine particular button for subsequent operations.
|
Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|