Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Fixed Floating point FloatItem

    Hi all,

    I'm trying to achieve the following behavior with FloatItem (or any other FormItem if possible)

    A textfield which has a fixed floating point and integer length ie. a mask like ###.##. However if I use setMask and give the previous argument it is not possible to get the value with the mask. I've tried setting MaskSaveLiterals to true but in that case once I call getvalue I'm getting "1 . " assuming the user entered only "1".

    The behavior I'm hoping is like so:

    if the user enters 1 the display value will be 001.00 get value should return 1
    if the user enters 1.1 the display will be 001.10 and the return value will be 1.1
    so on...

    I've tried setting MaskPadChar to "0" but in that case the padding char is only used at when the control is focused and they disappear once the focus is lost so calling get value again returns something different acting like the first example.


    Any help is welcome thanks in advance
Working...
X