bgiSetScrollbarRange

Updates the minimum and maximum range values of a scrollbar control. Takes scrollbarID (Int), min (Int), and max (Int). Returns nothing.

BGI GUI

Parameters & Returns

Parameters

scrollbarID Int
min Int
max Int

Returns

Void

Quick Summary

Updates the minimum and maximum range values of a scrollbar control. Takes scrollbarID (Int), min (Int), and max (Int). Returns nothing.

Technical Exegesis...

Updates the minimum and maximum range values of a scrollbar control. Searches gizmoMap for scrollbarID. If found, gets CustomScrollbarData* via GetWindowLongPtr(GWLP_USERDATA). Sets data->minVal=min and data->maxVal=max. Clamps current position to new range: if currentPos < minVal, sets to minVal; if currentPos > maxVal, sets to maxVal. Calls InvalidateRect to trigger scrollbar redraw. No return value.

This function changes the scrollbar's value range after creation.

Example

Example.bam
; No example implemented yet