Vizard 7 » Command Index » Vizard objects » node3d » <node3d:GUI:textbox>.overflow
7.7

<node3d:GUI:textbox>.overflow

Changes the way the textbpx handles the length of the text.

<node3d:GUI:textbox>.overflow(  
mode  
)  
mode
Can be one of the following:

Overflow Modes

viz.OVERFLOW_GROW

The node length will grow to fit the length of the selected text.

viz.OVERFLOW_SHRINK

The text size will be scaled down so that it fits in the node.

viz.OVERFLOW_CROP

The text will be cropped to fit in the node.


Remarks

This command controls how the textbox will behave when the text cannot fit into the bounds of the textbox. The default overflow mode is viz.OVERFLOW_CROP

Return Value

None

Example

text = viz.addTextbox()
text.setPosition([.5,.5,0])
text.overflow(viz.OVERFLOW_SHRINK)

The text size will shrink to fit in the textbox.