bdeSetBlockParameterWidget
Sets the type of widget for a parameter within block. Works with inlined blocks. All super blocks are inline blocks.
Syntax
bdeSetBlockParameterWidget(block, parameter, widget, defaultValues)
Inputs
- block
- The block in which to set the parameter widget.
- parameter
- The parameter set the widget of.
- widget
- The type of widget to set.
- defaultValues
- The default values for the widget that has been set.
Examples
Set the widget of a given parameter within a block:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockParameterWidget(block, 'parameter1', 'listbox', {'Nothing', 'Saturate', '1234', 'Test'});