bdeSetWidgetVisibilityCurrentValue

Sets the flag for the visible flag of a parameter.

Syntax

bdeSetWidgetVisibilityCurrentValue(editor, parameter, flag)

Inputs

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

Examples

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

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