[Gambas-user] Miscellaneous routines for text box validation

richard terry rterry at ...1822...
Fri Feb 8 04:39:07 CET 2008


Hi all,

My gambas learning project is progressing well (a contacts database manager), 
and I've got the point I can create new people/names/address(es), etc, now 
have to fine tune the gui, so not wanting to re-invent the wheel, I wondered 
if anyone had in their possession, or pointers to it, code which would do 
stuff like.

for textboxes:

Autocapitalise, or autocaps
Date validation routines/formatting routines
Name auto capitalisation eg for McBeth, or O'Neil etc

Also In VB  in the textbox routines one had (index, keyascii) and one could 
manipulate the keyascii value to whatever to either exclude keys or 
autocapitalise things etc

I wondered how this worked in gambas, as though I can detect the keypress, I 
couldnt see a way to send back a changed key value to the textbox.

Thanks in anticipation.


Richard





More information about the User mailing list