API 文档 > Parameters and relations > Object ProParameter > Callback ProParameterModifyWithUnitsPreAction
Callback ProParameterModifyWithUnitsPreAction
Description
This is the notification function called before a parameter is modified.
This function is to be supplied by the user by calling ProNotificationSet() with the notify type PRO_PARAM_MODIFY_W_UNITS_PRE.
Synopsis
#include <ProParameter.h>
(*ProParameterModifyWithUnitsPreAction)
(
ProParameter* new_param
/* (In)
The modified parameter.
*/
ProParamvalue* new_value
/* (In)
The value of the new parameter.
*/
ProUnititem* new_units
/* (In)
The units of the new value.
*/
ProParamvalue* old_value
/* (In)
The value of the parameter before it was modified.
*/
ProUnititem* old_units
/* (In)
The units of the value before it was modified.
*/
)
Returns
Proceed with the parameter modification.
Other
Error encountered. Abort parameter modifiction.
See Also
这对您有帮助吗?