User's Guide > Core: Parameters > Accessing Parameters > Notification Functions
Notification Functions
The parameter notification functions support the parameters owned by an annotation element. These functions are call back functions and are accessible by calling the function ProNotificationSet().
The notification function ProParameterCreateWithUnitsPreAction() is called before the parameter is created in the user interface. This function is available by calling ProNotificationSet() with the value of the notify type as PRO_PARAM_CREATE_W_UNITS_PRE. You can specify the units for the parameter.
The notification function ProParameterDeletePreAction() is called before the parameter is deleted. This function is available by calling ProNotificationSet() with the value of the notify type as PRO_PARAM_DELETE_PRE.
The notification function ProParameterModifyWithUnitsPreAction() is called before a parameter is modified in the user interface. This function is available by calling ProNotificationSet() with the value of the notify type as PRO_PARAM_MODIFY_W_UNITS_PRE. The function returns the old and new units of the parameter along with the values.
You can use the PreAction functions to cancel any changes made to the parameters. If any value except PRO_TK_NO_ERROR is returned, then the change is not permitted. The application must provide appropriate messaging to the user to explain the reason for which the change was rejected.
Note:
 
You are not permitted to cancel the parameter modification events when modifying multiple parameters as a group.
The notification function ProParameterCreatePostAction() is called after a parameter has been created. This function is available by calling ProNotificationSet() with the value of the notify type as PRO_PARAM_CREATE_POST.
The notification function ProParameterModifyWithUnitsPostAction() is called after a parameter has been modified in the user interface. This function is available by calling ProNotificationSet() with the value of the notify type as PRO_PARAM_MODIFY_W_UNITS_POST. The function returns the old and modified units of the parameter along with the values.
The notification function ProParameterDeleteWithUnitsPostAction() is called after a parameter has been deleted in the user interface. This function is available by calling ProNotificationSet() with the value of the notify type as PRO_PARAM_DELETE_W_UNITS_POST.
這是否有幫助?