hiCreateFloatSpinBox
hiCreateFloatSpinBox(?names_fieldName[?promptt_prompt] [?helpg_fieldHelp] [?valueg_value] [?defValueg_defaultValue] [?fontt_fontName] [?callbackg_callback] [?rangel_rangeOfItems] [?shadowedg_shadowed] [?enabledg_enabled] [?editableg_editable] [?precisionx_precision] [?stepf_step] [?obeyWidthg_obeyWidth] [?invisibleg_invisible] [?wrapAroundg_wraparound ] [?arrowOrientationg_arrowOrientation] ) =>r_fieldHandle
Description
Creates a float spin box field, which contains a range of items that users can cycle through. The spin box field can only contain floating point numbers. For integers, use hiCreateSpinBox.

This field can also have a context menu, that is, a pop-up menu that is displayed when you right-click on the field.
For information on creating tooltips for fields, see Creating Tool Tips for Fields.
Arguments
|
The name that appears next to the spin box field, specified as a string. |
|
|
A string, symbol, list of strings, or list of symbols used to reference help. If this argument is not specified, s_name is used. This argument is not currently used. |
|
|
The initial and current value of the field. g_value must be a floating point number within the range specified by l_rangeOfItems. |
|
|
The default value of the field. g_defaultValue must be a floating point number within the range specified by l_rangeOfItems. |
|
|
This optional argument is accepted but not supported currently. |
|
|
A string, symbol, or function object type callback. If the callback is of string type, you can specify one or more SKILL functions or even multiple SKILL statements that should be executed when the value of the field changes. |
|
|
A list of two floating point numbers defining the range of values in the spin box field. The first number must be less than the second number. |
|
|
This argument is ignored. There is always a shadow box around the arrows in the spin box field. |
|
|
Specifies whether the fields in the layout are enabled. The default value is |
|
|
Integer specifying the number of decimal points to display. The default value of this argument is 2. |
|
|
The floating point number by which to increment or decrement when the up or down arrow is pressed. The default value of this argument is 1.0. |
|
|
Enables the spinbox field to follow the width specified in the 2D attributes when the form is created. The default value is For information on 2D attributes, see Two Dimensional Form Layout. |
|
|
Specifies whether the layout and the fields within are invisible. The default value is |
|
|
Increments or decrements the spin box field as normal, but stop at the max/min values respectively. The default value is |
|
|
This argument is now ignored. Arrows that are used to cycle through the spin box field are always vertical and are always displayed on the right side of the field. |
|
Value Returned
Related Topics
Creating Context Menus for Fields
Return to top