Creates a panel container for organizing controls.
Takes text (String), 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
textString
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a panel container for organizing controls.
Takes text (String), 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 panel - a child window container for organizing and grouping controls. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates child window with WS_CHILD | WS_VISIBLE | WS_BORDER style. Registers custom window class if needed. Sets background color. Creates CGizmo with GIZMO_WINDOW type (panels are child windows), stores position, dimensions, state (visible=true, enabled=true). Returns panel ID on success, 0 if parent not found.
Creates a panel - a child window container for organizing and grouping controls. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates child window with WS_CHILD | WS_VISIBLE | WS_BORDER style. Registers custom window class if needed. Sets background color. Creates CGizmo with GIZMO_WINDOW type (panels are child windows), stores position, dimensions, state (visible=true, enabled=true). Returns panel ID on success, 0 if parent not found.
Panels serve as containers for controls, providing visual separation and organization. Controls created with the panel as parent will be clipped to panel bounds. Panels can have their own background color. Useful for creating complex layouts, toolbars, sidebars, or sectioning windows into regions. Unlike group boxes, panels are full child windows, not just visual frames.