bgiSetTrackbarRange

Sets the minimum and maximum value range for a trackbar. Takes trackbar (Int), rangeMin (Int), and rangeMax (Int). Returns 1 on success, 0 if trackbar not found.

BGI GUI

Parameters & Returns

Parameters

trackbar Int
rangeMin Int
rangeMax Int

Returns

Int

Quick Summary

Sets the minimum and maximum value range for a trackbar. Takes trackbar (Int), rangeMin (Int), and rangeMax (Int). Returns 1 on success, 0 if trackbar not found.

Technical Exegesis...

Sets the minimum and maximum value range for a trackbar control. Searches gizmoMap for the trackbar ID. Sends TBM_SETRANGE message with TRUE (redraw immediately) and MAKELONG(rangeMin, rangeMax) packing both values into LPARAM. Returns 1 on success, 0 if trackbar not found.

This function defines the value range for the trackbar slider. rangeMin is the minimum value (leftmost/bottom position), rangeMax is the maximum value (rightmost/top position). MAKELONG packs min in low word, max in high word.

Example

Example.bam
; No example implemented yet