Gets the current position value of a spinner control.
Takes spinner (Int).
Returns LOWORD(pos) - low word of result containing the position value on success, 0 if spinner not found.
BGI GUI
Parameters & Returns
Parameters
spinnerInt
Returns
Int
Quick Summary
Gets the current position value of a spinner control.
Takes spinner (Int).
Returns LOWORD(pos) - low word of result containing the position value on success, 0 if spinner not found.
Technical Exegesis...
Gets the current position value of a spinner (up-down) control. Searches gizmoMap for the spinner ID. Sends UDM_GETPOS message to retrieve current position. Returns LOWORD(pos) - low word of result containing the position value on success, 0 if spinner not found.
This function retrieves the spinner's current value as an integer. Value is within the range set by bgiSetSpinnerRange (default 0-100).
Gets the current position value of a spinner (up-down) control. Searches gizmoMap for the spinner ID. Sends UDM_GETPOS message to retrieve current position. Returns LOWORD(pos) - low word of result containing the position value on success, 0 if spinner not found.
This function retrieves the spinner's current value as an integer. Value is within the range set by bgiSetSpinnerRange (default 0-100). LOWORD extraction gets the position from the low word of the return value (high word contains error flag, ignored here). Use for reading user selections, processing spinner changes in BGI_EVENT_COMMAND_UPDATE events, or querying current state. Returns 0 for invalid spinner IDs (could be ambiguous if 0 is valid value).