Object ProUITimer

Function ProUITimerCreate


Description
Adds a new Timer to Creo Parametric. A Timer can be used to defer an action to a later stage. This function registers the Timer object, to be done only once during a Creo Parametric session for each timer. Subsequent calls to this function for previously registered timer name return an error. See also ProUIDialogTimerStart() Note: This function can be used only in dll mode, otherwise its behavior is unpredictable.
Synopsis
#include <ProUIDialog.h>
ProErrorProUITimerCreate(
ProUITimerAction action
/* (In)
See ProUITimerAction type definition. Note that the action callback does not return a value. The action is invoked only once per each call of ProUIDialogTimerStart. If the application wants to be called again, it should invoke ProUIDialogTimerStart again, possibly from the action callback. Note that you must not Activate/Open a dialog from this action CB.
*/
ProAppData appdata
/* (In)
User data to be passed to the action function.
*/
ProName timer_name
/* (In)
Name of timer.
*/
ProUITimerID * timer_id
/* (Out)
The id of the timer to be used with ProUIDialogTimerStart
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully create a timer.
PRO_TK_BAD_INPUTSOne of the input arguments is not valid.
PRO_TK_LINE_TOO_LONGThe timer_name is longer than 32 Characters.
PRO_TK_E_IN_USEThe timer_name is in use.

Manual References:

  1. User Interface: Dialogs: Dialog Operations
  2. User Interface: Dialogs: Dialog Operations