bgiMessageBox

Category: BGI GUI

Syntax:

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


Parameters

Returns

Int



Summary

Displays a message box with a choice of buttons and icon.

Takes message (String), title (String), buttons (Int), icon (Int) and window (Int).

buttons: 0 = OK, 1 = OK and Cancel, 2 = Yes and No, 3 = Yes, No and Cancel.
icon: 0 = information, 1 = warning, 2 = error, 3 = question.
window may be 0; given a BGI window, the box stays on top of it.

Returns 1 for OK or Yes, 0 for Cancel or No. Cancel and No both return 0, so a Yes/No/Cancel box cannot tell them apart. Closing the box counts as Cancel, except on a box with only OK, where it counts as OK - as on Windows.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn