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
Set a value for a parameter's enabled flag in a block:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
blockEditor = bdeGetBlockParametersEditor(dialog);
bdeSetWidgetEnabledCurrentValue(blockEditor, 'parameter1', false);
bdeApplyBlockParametersEditor(blockEditor);