Creates a scrollable panel with virtual canvas.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns panel ID on success, 0 if parent not found.
BGI GUI
Parameters & Returns
Parameters
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a scrollable panel with virtual canvas.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns panel ID on success, 0 if parent not found.
Technical Exegesis...
Creates a scrollable panel with a virtual canvas larger than the visible area. Searches gizmoMap for parent HWND. Auto-increments gizmoIDCount. Creates main panel window, then creates inner "canvas" window for content. Adds vertical and horizontal scrollbars with WS_VSCROLL | WS_HSCROLL. Initializes scroll info (SCROLLINFO). Creates CGizmo with custom scrollPanel type, stores both panel and canvas HWNDs, position, dimensions. Returns panel ID on success, 0 if parent not found.
Creates a scrollable panel with a virtual canvas larger than the visible area. Searches gizmoMap for parent HWND. Auto-increments gizmoIDCount. Creates main panel window, then creates inner "canvas" window for content. Adds vertical and horizontal scrollbars with WS_VSCROLL | WS_HSCROLL. Initializes scroll info (SCROLLINFO). Creates CGizmo with custom scrollPanel type, stores both panel and canvas HWNDs, position, dimensions. Returns panel ID on success, 0 if parent not found.
Scroll panels allow content larger than the visible area. Use bgiSetScrollPanelVirtualSize to set the total canvas size. Controls created with this panel as parent are placed on the scrollable canvas. Scrollbars appear automatically when virtual size exceeds visible size. Use bgiGetScrollPanelScrollX/Y to query scroll position. Use bgiSetScrollPanelScrollX/Y to programmatically scroll. Handles WM_VSCROLL and WM_HSCROLL messages internally.