IupMainLoopLevel (since 3.0)

Returns the current cascade level of IupMainLoop. When no calls were done, return value is 0.

Parameters/Return

int IupMainLoopLevel(void); [in C]
iup.MainLoopLevel() -> ret: number [in Lua]

Returns: the cascade level.

Notes

You can use this function to check if IupMainLoop was already called and avoid calling it again.

A call to IupPopup will increase one level.

See Also

IupOpen, IupClose, IupLoopStep, Guide/System Control, IDLE_ACTION, LOCKLOOP.