Sets the current position value of a spinner control.
Takes spinner (Int) and newValue (Int).
Returns 1 on success, 0 if spinner not found.
BGI GUI
Parameters & Returns
Parameters
spinnerInt
newValueInt
Returns
Int
Quick Summary
Sets the current position value of a spinner control.
Takes spinner (Int) and newValue (Int).
Returns 1 on success, 0 if spinner not found.
Technical Exegesis...
Sets the current position value of a spinner (up-down) control. Searches gizmoMap for the spinner ID. Sends UDM_SETPOS message with 0 (wParam unused) and newValue as position. Returns 1 on success, 0 if spinner not found.
This function programmatically sets the spinner's current value. newValue should be within the range set by bgiSetSpinnerRange (default 0-100). Value is clamped to valid range if outside bounds. If spinner has a buddy control (textbox), the buddy is updated to display the new value.
Sets the current position value of a spinner (up-down) control. Searches gizmoMap for the spinner ID. Sends UDM_SETPOS message with 0 (wParam unused) and newValue as position. Returns 1 on success, 0 if spinner not found.
This function programmatically sets the spinner's current value. newValue should be within the range set by bgiSetSpinnerRange (default 0-100). Value is clamped to valid range if outside bounds. If spinner has a buddy control (textbox), the buddy is updated to display the new value. Use for setting initial values, loading saved settings, or programmatic synchronization. Updates immediately without generating user events.