VxList object_name [-title title ] [-label label ] VtListArgs
Creates a VtList, allowing -title and -label. Returns the widget name of the List created.
The following code produces a List with a title.
set app [VtOpen "Demo"] set form [VtFormDialog $app.form -title "VxList Demo"] set list [VxList $form.list \ -title "Which fruit do you like?" \ -rows 6 \ -columns 25 \ -selection MULTIPLE \ -itemList {Apple Banana Kumquat Mango Grape Pineapple Grapefruit} ] VtShowDialog $form VtMainLoop
This code produces the following:
Returns the widget name of the list created. To get the widgetName of the Label or Form that is created using this command use VxGetVar. For example:
VxGetVar $widgetName "form"or
VxGetVar $widgetName "label"