Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

xfgrSetOptionProps

xfgrSetOptionProps( 
t_optionName
[?visible g_visible]
[?enable g_enable]
[?value g_value]
[?validValues l_validValues]
) 
=> t / nil

Description

Sets the properties of an option in the xFGR Create form. You can use this function from the xFGR Create form customization callback functions.

Arguments

t_optionName

The name of the option.

?visible g_visible

Makes a column visible. Valid values are:

  • t: Makes a column visible.
  • nil: Makes a column invisible.

?enable g_enable

Enables or disables a cell.

?value g_value

The value of a cell of the table.

?validValues l_validValues

Range of valid values for a combo-box.

Value Returned

t

The function completed successfully.

nil

The function did not complete successfully.

Example

Sets properties of an option in the xFGR Create form.

procedure(fgrCreateFormValueChanged(option value prevValue)
    let(()
     if(option == "device" && value == "ngr" then
xfgrSetOptionProps("numrows" ?value 2)
else
xfgrSetOptionProps("numrows" ?value 4)
)
)     ) xfgrOptionValueChangeCB("r" "fgrCreateFormValueChanged")

Return to top
 ⠀
X