IrrGuiEventAvailable

section index

## NAME

IrrGuiEventAvailable - discover if a gui event is available

## SYNOPSIS

IrrGuiEventAvailable()

## INPUTS

## FUNCTION

read gui event

## EXAMPLE

       ; while there are gui events waiting to be processed
       While IrrGuiEventAvailable()

           ; read the gui event out.
           *GuiEvent.IRR_GUI_EVENT = IrrReadGuiEvent()

           ; find out if there is gui-action
           If *GuiEvent\EventType > 0
               ;find out the caller (here a button we created before)
               If *guievent\Caller = *button And *guievent\EventType = #IRR_EGET_BUTTON_CLICKED
                   ;... do something ...
               Endif
           Endif
       Wend

## RESULT

#True, if there is a GUI-Event available