Introduction
Features
Command Reference
Tutorials
Examples

Colour Schemes
Extras

Online
 Command
NoActiveGadgets( )

 Parameters
None
 Description
Sometimes it might be useful to know if any controls are currently active (eg a menu is open, a combobox is open etc). An example of this could be for a level editor where you don't want any interaction with the level while a control is active.

 Example
Graphics 640, 480, 16, 2
SetBuffer BackBuffer( )

Include "blitzui.bb"
Initialise( )

mywindow = Window( 10, 20, 200, 200, "Test Window" )
mycombobox = ComboBox( 5, 5, 100, 20 )
AddComboBoxItem( mycombobox, 0, "Item One" )
AddComboBoxItem( mycombobox, 0, "Item Two" )
AddComboBoxItem( mycombobox, 0, "Item Three" )
AddComboBoxItem( mycombobox, 0, "Item Four" )

Repeat
    UpdateGUI( )
    DrawMouse( )

    Color 255, 255, 255
    If NoActiveGadgets()
        Text 10, 10, "No Active Gadgets"
    Else
        Text 10, 10, "There Is An Active Gadget"
    EndIf

    Flip
    Cls
Until KeyHit( 1 )
Destroy( )
End