Sets the virtual canvas size for a scroll panel.
Takes scrollPanelID (Int), virtualWidth (Int), and virtualHeight (Int).
Returns nothing.
BGI GUI
Parameters & Returns
Parameters
scrollPanelIDInt
virtualWidthInt
virtualHeightInt
Returns
Void
Quick Summary
Sets the virtual canvas size for a scroll panel.
Takes scrollPanelID (Int), virtualWidth (Int), and virtualHeight (Int).
Returns nothing.
Technical Exegesis...
Sets the total scrollable area (virtual canvas) size for a scroll panel. Searches gizmoMap for the scroll panel. Updates the internal canvas window size and scroll range. Calls SetScrollInfo with SIF_RANGE to configure scrollbar ranges based on virtual size minus visible size. The scrollbars automatically appear/disappear based on whether virtual size exceeds panel dimensions. Takes no action if panel not found.
The virtual size determines the total area available for placing controls.
Sets the total scrollable area (virtual canvas) size for a scroll panel. Searches gizmoMap for the scroll panel. Updates the internal canvas window size and scroll range. Calls SetScrollInfo with SIF_RANGE to configure scrollbar ranges based on virtual size minus visible size. The scrollbars automatically appear/disappear based on whether virtual size exceeds panel dimensions. Takes no action if panel not found.
The virtual size determines the total area available for placing controls. If virtualWidth > panel width, horizontal scrollbar appears. If virtualHeight > panel height, vertical scrollbar appears. Controls placed at positions beyond the visible area will be accessible by scrolling. Call this after creating the scroll panel and before adding controls. Default virtual size matches panel size (no scrolling).