Documentação da API > Custom user interface > Object ProUIDialog > Function ProUIDialogTimerStart
Function ProUIDialogTimerStart
Description
Start the timer. After duration has passed (or longer), Creo will invoke the ProUITimerAction callback registered in ProUITimerCreate. You can call ProUIDialogTimerStart() again, from the ProUITimerAction. Note: This function can be used only in dll mode, otherwise its behavior is unpredictable.
Synopsis
#include <ProUIDialog.h>
ProUIDialogTimerStart
(
char* dialog
/* (In)
The name of the dialog, each dialog can have only one timer simultaneously.
*/
ProUITimerID timer_id
/* (In)
the timer_id from ProUITimerCreate().
*/
int duration
/* (In)
In milliseconds, minimal value is 100
*/
ProBoolean write_in_trail_file
/* (In)
controls if the timer action happing to
*/
)
Returns
The function successfully start a timer.
One of the input arguments is not valid.
There is an activae timer for this dialog.
The timer_id was not found.
The function failed to start a timer.
User Guide References
Isto foi útil?