bgiMessageBox

Displays a customizable message box with selectable button and icon types. Takes message (String), title (String), buttons (Int), icon (Int), and window (Int). Returns 1 for OK/Yes (IDOK/IDYES), 0 for Cancel/No (IDCANCEL/IDNO), -1 for other (default/X button).

BGI GUI

Parameters & Returns

Parameters

message String
title String
buttons Int
icon Int
window Int

Returns

Int

Quick Summary

Displays a customizable message box with selectable button and icon types. Takes message (String), title (String), buttons (Int), icon (Int), and window (Int). Returns 1 for OK/Yes (IDOK/IDYES), 0 for Cancel/No (IDCANCEL/IDNO), -1 for other (default/X button).

Technical Exegesis...

Displays a customizable message box with selectable button and icon types. Searches gizmoMap for window ID to get parent HWND. Maps buttons parameter to MessageBox flags: 0=MB_OK, 1=MB_OKCANCEL, 2=MB_YESNO, 3=MB_YESNOCANCEL (default 0). Maps icon parameter to MessageBox flags: 0=MB_ICONINFORMATION, 1=MB_ICONWARNING, 2=MB_ICONERROR, 3=MB_ICONQUESTION (default 0). Calls Windows MessageBox() with combined flags. Blocks until user responds.

Example

Example.bam
; No example implemented yet