Sets the minimum and maximum value range for a spinner control.
Takes spinner (Int), rangeMin (Int), and rangeMax (Int).
Returns 1 on success, 0 if spinner not found.
BGI GUI
Parameters & Returns
Parameters
spinnerInt
rangeMinInt
rangeMaxInt
Returns
Int
Quick Summary
Sets the minimum and maximum value range for a spinner control.
Takes spinner (Int), rangeMin (Int), and rangeMax (Int).
Returns 1 on success, 0 if spinner not found.
Technical Exegesis...
Sets the minimum and maximum value range for a spinner (up-down) control. Searches gizmoMap for the spinner ID. Sends UDM_SETRANGE message with 0 (wParam unused) and MAKELONG(rangeMax, rangeMin) packing values in reversed order. Returns 1 on success, 0 if spinner not found.
This function defines the value range for the spinner control. Note the reversed order: MAKELONG(rangeMax, rangeMin) - max in low word, min in high word (opposite of trackbar). Default range is typically 0-100 if not set.
Sets the minimum and maximum value range for a spinner (up-down) control. Searches gizmoMap for the spinner ID. Sends UDM_SETRANGE message with 0 (wParam unused) and MAKELONG(rangeMax, rangeMin) packing values in reversed order. Returns 1 on success, 0 if spinner not found.
This function defines the value range for the spinner control. Note the reversed order: MAKELONG(rangeMax, rangeMin) - max in low word, min in high word (opposite of trackbar). Default range is typically 0-100 if not set. Use before or after creating spinner to define meaningful ranges (1-999 for quantities, 0-23 for hours, etc.). Spinner buttons increment/decrement within this range, wrapping or stopping at bounds depending on style. Current position value is clamped to new range if outside bounds.