Hi Nguyen,

Ex : I input 123456, if i press 7, then value in ULCTextField is 123456, not 1234567.
+ when I press . , I have only input maximum 3 number after dot.
You can do this with a custom data type. Just override the filterInput() method and return null in case you want to ignore the user input.

Regards Dany


On 08.05.2008, at 16:56, nguyen duyhai wrote:

Hello,
I have some problem about custom ULCTextField for show double.
I want create the ULCTextField for double with format : 6 digit, 3 decimal.
ULCSupport with method setDataType.
However, I want customize for ULCTextField support :
+ when I already input 6 digit, if I input one digit, the ULCTextField is not show data. Ex : I input 123456, if i press 7, then value in ULCTextField is 123456, not 1234567.
+ when I press . , I have only input maximum 3 number after dot.

I think we need create "DoubleDataType" for limit number.
Can you help me to customize ULCTextField for show value with format double 6 digit, 3 decimal?

Thanks a lot for your help.
Best regards.
Nguyen.

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to