ComputeEnabled event callback functions

The event callback interface for ComputeEnabled event.

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

Properties

onComputeEnabled?: (clientData: LPVOIDType) => boolean

This procedure is called every time the menu or toolbar button is displayed, so it should not do compute-time-intensive processing. It is called before the menu item or toolbar button is displayed. If it returns FALSE, the menu item, or toolbar button will be disable; otherwise it will be enable. If this callback is NULL, the menu item or toolbar button is always enabled.

Type declaration

    • (clientData: LPVOIDType): boolean
    • Parameters

      Returns boolean

      TRUE if the menu item, or toolbar button is enabled, FALSE otherwise.