Category: BGI GUI
Syntax:
bgiMessageBox:Int(message:String, title:String, buttons:Int, icon:Int, window:Int)
Int
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).
View detailed documentation online
;No example implemented yet
Returns at once, because a browser can't wait for an answer. The answer arrives as an event: BGI_EVENT_COMMAND_CLICK with ID BGI_EVENT_ID_DIALOG ($114), source = the window, bgiGetEventData() = 1 for OK or 0 for Cancel, bgiGetEventExtra() = the title. For Yes/No boxes, data is 1 for Yes and 0 for No. See BGI on the web.
BambooBasic © 2026 Michael Denathorn