gui.setNumberBoxPrecision

Limits the number box to a certain number of decimal places.

Prototype

  1. bOk = gui.setNumberBoxPrecision ( hComponent, nFocusedPrecision, [nUnFocusedPrecision] )

Description

Focused Precision: User can enter a number potentially greater/smaller than required
Unfocused Precision: The precision the number will be truncated/expanded to


Parameters

hComponent - a valid numberbox handle
nFocusedPrecision - number 0..n
[nUnFocusedPrecision] - optional number 0..n


Return values

bOk - true on success


Sample

  1. gui.setNumberBoxPrecision ( hComponentX, nFocusedPrecisionX or 3, nUnFocusedPrecisionX or nFocusedPrecisionX or 3 )

Available since ShiVa 2.0