bgiMessageBox

Category: BGI GUI

Syntax:

bgiMessageBox:Int(message:String, title:String, buttons:Int, icon:Int, window:Int)


Parameters

Returns

Int



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).

View detailed documentation online



Example

;No example implemented yet



On the Web

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