bdeSetWidgetEnabledCurrentValue

Sets the flag for the enabled flag of a parameter.

Syntax

bdeSetWidgetEnabledCurrentValue(editor, parameter, flag)

Inputs

editor
The editor of the block.
Type: editor
parameter
The parameter of which to set the enabled flag. Can be a string or hwscpBlockParameter.
Type: string/hwscpBlockParameter
flag
The value to set for the enabled flag.
Type: Boolean

Examples

Set a value for a parameter's enabled flag in a block:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          blockEditor = bdeGetBlockParametersEditor(dialog);
          bdeSetWidgetEnabledCurrentValue(blockEditor, 'parameter1', false);
          bdeApplyBlockParametersEditor(blockEditor);