TTMSFNCCustomAnalogTimeSelector.XYToHour Method
Returns the hour (0–11) corresponding to the given pixel coordinates on the clock face.
API unit family: TMSFNCAnalogTimeSelector
Declaring type: TTMSFNCCustomAnalogTimeSelector
Syntax
function XYToHour(X: Single; Y: Single): Integer;
Parameters
| Name | Description |
|---|---|
X |
Horizontal pixel coordinate relative to the control. |
Y |
Vertical pixel coordinate relative to the control. |
Returns
Hour value (0–11) under the given coordinates.