Vizard 8 » Command Index » Vizard objects » node3d » <node3d:GUI:droplist>.addItem
8.0

<node3d:GUI:droplist>.addItem

This action will add an item to the droplist.

<node3d:GUI:droplist>.addItem(  
text  
index = -1  
)  
text
Item text
index = -1
The index to insert the item at. It will be inserted at the end if values is less than zero.

Remarks

Adds an item to the droplist.
Optionally will position it in the desired index.

Return Value

None

Example

list = viz.addDropList()
list.setPosition(.5,.5)
list.addItem('B')
list.addItem('C')
list.addItem('A',0) #Insert's A at the 0 index (top)
list.addItem('D')