3.6.2. Usage

This section explains the arguments used in the various list and drop-down list macros.

3.6.2.1. cx-create-list

(cx-create-list parent label visible-lines multiple-selections row column)

ArgumentTypeDescription
parentobjectThe name of the table that you are adding the list to
labelstringThe name of the list to be displayed on the GUI
visible-linessymbol/intThe number of lines of text visible before a scroll bar is needed
multiple-selectionssymbol/BooleanAllows you to choose between having one item at a time selected or multiple
rowsymbol/intWhen added to a table, signifies the row that the list is added to
columnsymbol/intWhen added to a table, signifies the column that the list is added to

Note:  The visible-lines, multiple-selections, row, and column attributes are optional. If they are not included, the number of visible lines has a default of ten and multiple-selections is #f, meaning that you can only select one list item at a time. Furthermore, if the row or column attributes are left out then the list will be added to the first row/column of the parent attribute and overwrite anything that is already in that spot.


3.6.2.2. cx-create-drop-down-list

(cx-create-drop-down-list parent label multiple-selections row column)

ArgumentTypeDescription
parentobjectThe name of the table that you are adding the drop-down list to
labelstringThe name of the drop-down list to be displayed on the GUI
rowsymbol/intWhen added to a table, signifies the row that the drop-down list is added to
columnsymbol/intWhen added to a table, signifies the column that the drop-down list is added to

Note:  The row and column attributes are optional. If not included, the drop-down list will be added to the first row/column of the parent attribute and overwrite anything that is already in that spot.


3.6.2.3. cx-set-list-items

(cx-set-list-items list items)

ArgumentTypeDescription
listlistThe name of the list you are adding items to
itemsstringsThe strings that represent each item to be added to the list

3.6.2.4. cx-set-list-selections

(cx-set-list-selections list selections)

ArgumentTypeDescription
listlistThe name of the list you are setting the selections of
selectionslistThe members of the list that you want selected

3.6.2.5. cx-show-list-selections

(cx-show-list-selections list)

ArgumentTypeDescription
listlistThe name of the list that you are obtaining the selections from

Release 18.2 - © ANSYS, Inc. All rights reserved.