gui.setNumberBoxPrecision
Limits the number box to a certain number of decimal places.
Prototype
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
gui.setNumberBoxPrecision ( hComponentX, nFocusedPrecisionX or 3, nUnFocusedPrecisionX or nFocusedPrecisionX or 3 )
Available since ShiVa 2.0