pyui.set_control_range - pytha-3d-cad/pytha-lua-api GitHub Wiki
Sets the range of the spin button of a [edit control with spin button] pyui.create_text_spin. This text box type is preferentially used for the input of integers.
pyui.set_control_range(control, bound_min, bound_max)
control:set_control_range(bound_min, bound_max)
Parameters
| Type | Description | |
|---|---|---|
control |
control_handle |
Control handle |
bound_min |
integer |
Optional: Lower limit of the spin button range |
bound_max |
integer |
Optional: Upper limit of the spin button range |
Return value
None
Note
bound_min and bound_max only limit the range of the spin buttons, but not any input in the text box.
See also
Control Gallery, create_text_spin, set_control_text, set_on_change_handler