Vizard 7 » Command Index » Vizard objects » node3d » <node3d:GUI:slider>.margin
7.7

<node3d:GUI:slider>.margin

This action will set the margin of the slider

<node3d:GUI:slider>.margin(  
value  
)  
value
The margin of the slider

Remarks

The margin of the slider is the amount of space left on the edges when the tick is at a far edge. The margin is specified by the percentage of the slider. So a margin of 0.1, means that when the tick is at the far edge, 1/10 of the slider will still be remaining.

Return Value

None

Example

slider = viz.addSlider()
slider.margin(0.1)

See also

<node3d:GUI:slider>.setTickSize