[Gambas-user] New MaskBox control
Benoît Minisini
gambas at ...1...
Wed Jan 5 18:12:39 CET 2011
Hi,
As an intermediate goal before rewriting the ValueBox control, I have
implemented a MaskBox control, that is a TextBox with a mask.
How does it work ?
By setting the mask property, you define which characters are non-editable
separators, and which characters can be entered by the user
At the moment, the following mask characters are implemented:
'9' : any digit.
'0' : any digit, with '0' as default
'6' : any hexdecimal character
'A' : any letter ('A'-'Z' and 'a'-'z')
'?' : any character.
Every other character is a separator. If you want to use a mask character as
separator, use the '\' escape character.
Examples:
To enter a date, set Mask to "00/00/0000".
To enter an IP address,set Mask to "999.999.999.999"
To enter a french currency, set Mask to "999 999 990,00 €"
Make remarks and enjoy it!
Regards,
--
Benoît Minisini
More information about the User
mailing list