igiBeginMenuBar

Starts the menu bar of the current window - the window needs the IGI_WINDOW_MENUBAR flag. Returns: 1 if the menu bar is showing.

IGI

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Starts the menu bar of the current window - the window needs the IGI_WINDOW_MENUBAR flag. Returns: 1 if the menu bar is showing.

Technical Exegesis...

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.

Returns: 1 if the menu bar is showing.

Example

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