"minMaxNumeric"

If you activate minMaxNumeric, you can write an arbitrary numeric value (int, float) in a text field and the "min"-"max" check is carried out when a command script is executed or when focus of a text field is lost.

Synopsis

shape.minMaxNumeric(bool);

Parameter

Parameter Description
bool TRUE = the "min"-"max" check is carried out when a command script is executed or when focus of a text field is lost.

FALSE = the "min"-"max" check is not carried out when a command script is executed or when focus a text field is lost.

Description

If you activate minMaxNumeric, you can write an arbitrary numeric value (int, float) in a text field and the "min"-"max" check is carried out when a command script is executed or when focus of a text field is lost. If the value is not accepted, the previous value is set for the text field. If a value is not accepted and the previous value is also not within the valid range, the nearest limit for the TextField is set.

Example:

  • A TextField has the value 0. If you set the minimum value to 1 and the maximum value to 3, then the TextField has the value 1.
  • A TextField has the value 5. If you set the minimum value to 1 and the maximum value to 3, the TextField has the value 3.
Attention: If the attribute "allowEmptyNumeric" is enabled and minMaxNumeric used, the textField remains empty if a new value is not in the valid range of minMaxNumeric.

Assignment

Text field