bdeSetWidgetEnabledCurrentValue
Sets the flag for the enabled flag of a parameter.
Syntax
bdeSetWidgetEnabledCurrentValue(editor, parameter, flag)
Inputs
- editor
- The editor of the block.
- parameter
- The parameter of which to set the enabled flag. Can be a string or hwscpBlockParameter.
- flag
- The value to set for the enabled flag.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
blockEditor = bdeGetBlockParametersEditor(dialog);
bdeSetWidgetEnabledCurrentValue(blockEditor, 'parameter1', false);
bdeApplyBlockParametersEditor(blockEditor);