bgiSetTrackbarValue

Sets the current position value of a trackbar slider. Takes trackbar (Int) and newValue (Int). Returns 1 on success, 0 if trackbar not found.

BGI GUI

Parameters & Returns

Parameters

trackbar Int
newValue Int

Returns

Int

Quick Summary

Sets the current position value of a trackbar slider. Takes trackbar (Int) and newValue (Int). Returns 1 on success, 0 if trackbar not found.

Technical Exegesis...

Sets the current position value of a trackbar slider control. Searches gizmoMap for the trackbar ID. Sends TBM_SETPOS message with TRUE (redraw immediately) and newValue as position. Returns 1 on success, 0 if trackbar not found.

This function programmatically moves the trackbar slider to a specific value. newValue should be within the range set by bgiSetTrackbarRange (default 0-100). TRUE parameter causes immediate visual update. Value is clamped to valid range if outside bounds.

Example

Example.bam
; No example implemented yet