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
trackbarInt
newValueInt
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.
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. Use for setting initial values, loading saved settings, or programmatic control synchronization. Slider position updates immediately without generating user events.