Vizard 8 » Command Index » Vizard modules » viz » <viz>.addTextbox
8.0

<viz>.addTextbox

Adds a textbox affixed by default to the screen.

<viz>.addTextbox(  
scene = viz.MainScene  
parent = viz.SCREEN  
)  
scene = viz.MainScene
If the parent is viz.WORLD or viz.SCREEN, then the argument represents the scene to add the object to.
If the parent is viz.ORTHO, then the argument represents the window to add the object to.
If the parent is a valid node3d object, then the argument is ignored.
parent = viz.SCREEN
viz.WORLD
viz.SCREEN
viz.ORTHO
<node3d> object

Remarks

A textbox is a GUI object which allows the user to input text. The user must click on the textbox before entering text. The textbox will retain input focus until the Enter/Escape key is pressed or the mouse is clicked outside the textbox. The textbox will consume keyboard events while it has focus. This means user-defined keyboard callbacks will not be triggered, unless they are registered with a priority less than viz.PRIORITY_GUI_HANDLER

Return Value

<node3d:GUI:textbox> object

Example

object = viz.addTextbox()
object.setPosition([.5,.5,0])

See also

<viz>.addButton
<viz>.addButtonLabel
<viz>.addCheckbox
<viz>.addDropList
<viz>.addProgressBar
<viz>.addRadioButton
<viz>.addSlider
<viz>.addText