igiBeginMenuBar

Category: IGI (in-game GUI) — Trees, tabs and menus

Syntax:

igiBeginMenuBar:Int()


Parameters

None



Returns

1 if the menu bar is showing.



Summary

Starts the menu bar of the current window - the window needs the IGI_WINDOW_MENUBAR flag. Add menus with igiBeginMenu, then call igiEndMenuBar.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.



Example
If igiBeginMenuBar() Then
    If igiBeginMenu("File") Then
        If igiMenuItem("Save") Then SaveGame()
        igiEndMenu()
    EndIf
    igiEndMenuBar()
EndIf

BambooBasic © 2026 Michael Denathorn