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 ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user