ResetTimer

int ResetTimer (int panelHandle, int controlID);

Purpose

Resets the interval start times for timer controls.

ResetTimer resets a timer whether or not it is disabled or suspended. When you reset a timer with an ATTR_INTERVAL of x seconds, ResetTimer reschedules the interval to end x seconds from the time of the call.

You can specify an individual timer control on a panel, all timer controls on a panel, or all timer controls on all panels in the current thread.

Parameters

Input
Name Type Description
panelHandle integer Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel. Pass 0 to indicate all timer controls on all panels in the current thread.
controlID integer Defined constant, located in the .uir header file, that you assign to the control in the User Interface Editor, or the ID that you obtain from NewCtrl or DuplicateCtrl. Pass 0 to indicate all timer controls on the specified panel.

Return Value

Name Type Description
status integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Code Error Message String
xx Success