Sets the horizontal scroll position programmatically.
Takes scrollPanelID (Int) and scrollX (Int).
Returns nothing.
BGI GUI
Parameters & Returns
Parameters
scrollPanelIDInt
scrollXInt
Returns
Void
Quick Summary
Sets the horizontal scroll position programmatically.
Takes scrollPanelID (Int) and scrollX (Int).
Returns nothing.
Technical Exegesis...
Programmatically sets the horizontal scroll position of a scroll panel. Searches gizmoMap for the panel. Clamps scrollX to valid range (0 to virtualWidth - panelWidth). Calls SetScrollInfo with SIF_POS to update the scrollbar position. Sends WM_HSCROLL message to trigger the scroll handler which repositions the canvas window. Takes no action if panel not found or has no horizontal scrollbar.
Programmatically sets the horizontal scroll position of a scroll panel. Searches gizmoMap for the panel. Clamps scrollX to valid range (0 to virtualWidth - panelWidth). Calls SetScrollInfo with SIF_POS to update the scrollbar position. Sends WM_HSCROLL message to trigger the scroll handler which repositions the canvas window. Takes no action if panel not found or has no horizontal scrollbar.
Useful for programmatically scrolling to specific content, implementing "scroll to top" buttons, or restoring saved scroll positions. The canvas and all child controls scroll smoothly to the new position. The scrollbar thumb updates to reflect the new position. Use bgiGetScrollPanelScrollX to query the current position before changing it.