GUI Help > Special > setUpDownRange
setUpDownRange
setUpDownRange handle gadget, int min, int max
Description: Sets the maximum and minimum possible values for an UpDown gadget. For example in a model viewer you might only want the user to be able to select a scale between 20 and 200% for the model using an UpDown control attached to an edit gadget.
Return Value:
Parameters:
gadget | Handle to an UpDown gadget
min | Minimum possible value of UpDown gadget
max | Maximum possible value of UpDown control
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)