search for: textfield_integer

Displaying 1 result from an estimated 1 matches for "textfield_integer".

2008 Nov 11
3
FXTextField and number of digits after decimal point
...IELD_NORMAL|JUSTIFY_RIGHT, :selector => FXDataTarget::ID_VALUE) where @value is the number as read from the YAML file. If I use a TEXTFIELD_NORMAL, I get all the digits after the decimal point, but then it becomes difficult to test if the user entry thereafter will be correct. I I use a TEXTFIELD_INTEGER, like below, I get only three digits after the decimal point. @value_sel = FXDataTarget.new(@value) @value_value = FXTextField.new(@matrix_mem_value, 20, at value_sel, :opts =>TEXTFIELD_INTEGER|JUSTIFY_RIGHT, :selector => FXDataTarget::ID_VALUE) If I use a TEXTFIELD_REAL, I...