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

<node3d:GUI>.setFocus

Sets the focus of an object

<node3d:GUI>.setFocus(  
value  
)  
value
viz.ON
viz.OFF

Remarks

This command will give the GUI object input focus.

Return Value

None

Example

droplist = viz.addDropList()
droplist.setPosition(.5,.5)
droplist.addItems(['HAS','sadflj'])
droplist.setFocus(viz.ON)
print(droplist.getFocus()) #Returns 1

See also

<node3d:GUI>.getFocus