ResetTimer
- Updated2023-02-21
- 1 minute(s) read
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.
Supported Controls
You can use ResetTimer with timer controls.
Parameters
Input | ||
Name | Type | Description |
panelHandle | int | Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel. Pass 0 to indicate all timer controls on all panels in the current thread. |
controlID | int | Defined constant, located in the .uir header file, that you assign to the control in the User Interface Editor, or the ID returned by functions such as NewCtrl and DuplicateCtrl. Pass 0 to indicate all timer controls on the specified panel. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later