bgiSetSpinnerRange

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

spinner Int
rangeMin Int
rangeMax Int

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.

Example

Example.bam
; No example implemented yet