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

<node3d:GUI:droplist>.overflow

Changes the way the droplist handles the length of the text

<node3d:GUI:droplist>.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

The default overflow mode is viz.OVERFLOW_GROW, which will be used if this function isn't called.

Return Value

None

Example

list = viz.addDropList()
list.overflow(viz.OVERFLOW_SHRINK)
list.setPosition(.5,.5)
list.addItem('A')
list.addItem('BBBBBCCCCCDDDDDDEEEEEE')
list.addItem('C')
list.addItem('D')

When BBBB... is selcted the text size will shrink, when anything else is selected it will be the default size.