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

<node3d:GUI:droplist>.select

Selects the item at the desired index.

<node3d:GUI:droplist>.select(  
index  
)  
index
Zero-based index of the item to select

Remarks

This command will set the selection of the droplist to the item at the specified 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')
list.select(0) #Selects A as B is originally selected