ComputeEnabled 事件回调函数

ComputeEnabled 事件的回调接口。

{
onComputeEnabled: (clientData: LPVOIDType) => {
console.log('Calculation activation process:', clientData);
}
}
interface ComputeEnabledProcCallbacksType {
    onComputeEnabled?: (clientData: LPVOIDType) => boolean;
}

Properties

onComputeEnabled?: (clientData: LPVOIDType) => boolean

每次菜单或工具栏按钮显示时都会调用此过程,因此不应在其中执行耗时的计算处理。该过程在菜单项或工具栏按钮显示之前被调用。如果返回 FALSE,则菜单项或工具栏按钮将被禁用;否则将被启用。如果此回调为 NULL,则菜单项或工具栏按钮始终处于启用状态。

Type declaration

    • (clientData: LPVOIDType): boolean
    • Parameters

      Returns boolean

      如果菜单项或工具栏按钮被启用则为 TRUE,否则为 FALSE。