Creates a picture box for displaying images.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
BGI GUI
Parameters & Returns
Parameters
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a picture box for displaying images.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
Technical Exegesis...
Creates a picture box control for displaying images. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using "STATIC" class with SS_BITMAP | WS_CHILD | WS_VISIBLE style (displays bitmap images). Creates CGizmo with custom PictureBox type, stores position, dimensions, state (visible=true, enabled=true). Returns gizmo ID on success, 0 if parent not found.
Creates a picture box control for displaying images. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using "STATIC" class with SS_BITMAP | WS_CHILD | WS_VISIBLE style (displays bitmap images). Creates CGizmo with custom PictureBox type, stores position, dimensions, state (visible=true, enabled=true). Returns gizmo ID on success, 0 if parent not found.
Picture boxes display static images (PNG, JPG, BMP, GIF via GDI+). Use specialized picture box functions to load and set images. Images are scaled to fit the picture box dimensions. Common for logos, icons, preview panes, or any image display. Picture boxes don't generate click events by default - they're display-only. For clickable image buttons, use bgiCreateBitmapButton instead.