New Page 1

IUP - Portable User Interface

IupTimer

Creates a timer which periodicaly invokes a callback when the time is up.

Parameters/Return

Ihandle* IupTimer(); [in C]
iuptimer() -> (elem: iuplua_tag) [in IupLua3]
iup.timer() -> (elem: iuplua_tag) [in IupLua5] 
timer() [in LED]

The function returns the identifier of the created handle, or NULL if an error occurs.

Attributes

TIME: The time interval in miliseconds.

RUN: Starts the timer. Possible values: "YES" or "NO".

Callbacks

ACTION_CB: Called when the time is up.

int function(Ihandle *self); [in C]
elem:action() -> (ret: number) [in IupLua]

   self: Timer handle.

Examples