Set min / max value for sliders and inputs

 

Are there any way to set min / max value for user input fields?

so the user  can now what the limit of input for example when expose video switch module and if we need 4 source if the user dont know that he will try different values to test.


Also when changing values the increase and decrease   using small arrow beside the fields.


 

   ahmed ahmed

 
プロフィール画像
Aximmetry
  -  

You cannot set min-max directly, but in these cases you can assign a named list (enumeration).

For e.g. you name the Draw tools. For this you have to rename the exposed pin (or the corresponding pin on a Pin Collector, if you use Control Boards) in a special way.
In this case you rename the Tool exposed pin:

     

You have to use the $Enum keyword, then the pin name (in this case Tool), then the enumeration of the named values that will take the integer values 1,2,3,... etc. All of them are separated by commas.

$Enum,Tool,Eraser,traight Arrow,Freehand Arrow,Circle,Quad,Freehand Blob

After that you'll be able to select the tool by name on the Dashboard:



;