TIMERDefines an event timer. Event timers execute a specific action or a set of command in regular intervals based on the delay value.Syntax:<TIMER
delay="" action=""> </TIMER> Parameters: id - Timer ID. This parameter is required and must have a unique value. delay - Timer delay in seconds. action - Action to execute. Can contain a URL, or one or more semicolon separated functions. Remarks:
Example: This example creates a timer to update a toolbar button caption with the current time. The caption is updated once every second. <xml id="toolbar"> <toolbar caption="Timer Example"> <control type="toolbar"> <button id=time caption="$DD $MON $HH:$MI:$SS" tooltip="The current time is: $HH:$MI:$SS"></button> </control> </toolbar> <commands> <timer id=settime delay=1 action="SetCaption(time,'$DD $MON $HH:$MI:$SS')"></timer> </commands> </xml> |