bgiSetScrollbarPos

Sets the current position of a scrollbar control programmatically. Takes scrollbarID (Int) and pos (Int). Returns nothing.

BGI GUI

Parameters & Returns

Parameters

scrollbarID Int
pos Int

Returns

Void

Quick Summary

Sets the current position of a scrollbar control programmatically. Takes scrollbarID (Int) and pos (Int). Returns nothing.

Technical Exegesis...

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

This function programmatically moves the scrollbar thumb to a specific position.

Example

Example.bam
; No example implemented yet