Sets the vertical scroll position programmatically.
Takes scrollPanelID (Int) and scrollY (Int).
Returns nothing.
BGI GUI
Parameters & Returns
Parameters
scrollPanelIDInt
scrollYInt
Returns
Void
Quick Summary
Sets the vertical scroll position programmatically.
Takes scrollPanelID (Int) and scrollY (Int).
Returns nothing.
Technical Exegesis...
Programmatically sets the vertical scroll position of a scroll panel. Searches gizmoMap for the panel. Clamps scrollY to valid range (0 to virtualHeight - panelHeight). Calls SetScrollInfo with SIF_POS to update the scrollbar position. Sends WM_VSCROLL message to trigger the scroll handler which repositions the canvas window. Takes no action if panel not found or has no vertical scrollbar.
Programmatically sets the vertical scroll position of a scroll panel. Searches gizmoMap for the panel. Clamps scrollY to valid range (0 to virtualHeight - panelHeight). Calls SetScrollInfo with SIF_POS to update the scrollbar position. Sends WM_VSCROLL message to trigger the scroll handler which repositions the canvas window. Takes no action if panel not found or has no vertical 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 bgiGetScrollPanelScrollY to query the current position before changing it.