igiOpenPopup

Asks for a popup to open. Takes id (The popup's name - the same one given to igiBeginPopup or igiBeginPopupModal).

IGI

Parameters & Returns

Parameters

id String

Returns

Void

Quick Summary

Asks for a popup to open. Takes id (The popup's name - the same one given to igiBeginPopup or igiBeginPopupModal).

Technical Exegesis...

Asks for a popup to open. It opens the next time igiBeginPopup / igiBeginPopupModal with the same name is called, so this works from anywhere - a button, a menu item, or a key press.

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

Example

Example.bam
If igiMenuItem("About") Then igiOpenPopup("About")
; ... later, in the same window or anywhere ...
If igiBeginPopupModal("About") Then
    igiText("My Game v1.0")
    If igiButton("Close") Then igiCloseCurrentPopup()
    igiEndPopup()
EndIf