Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KeyPress event in base class for textbox
Message
 
 
À
22/09/2015 16:44:12
Alex Zhadanov
Computer Generated Solutions
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01624950
Message ID:
01625029
Vues:
141
The code in the base class method/event will only be executed if you do not override it
>I have question about KeyPress event.
>I have base class stdtxt and i created many text boxes based on this class and all text boxes objects have inputmask like !!!!!!!!!!!!
>But customer complained that if user accidantely press control+B or O (or maybe othercontrol combination) some garbage characters are inserted into those textboxes
>I know that i can modify each of those textboxes inserting NODEFAULT : IF nKeyCode less than 32
> NODEFAULT
>ENDIF
>. But i tried to do it in the base class to avoid making changes in all textboxes but it did not work.
>Also i did like this in base class : if nKeyCode less than 32 nKeyCode = 32 endif , But it also did not work
>object receive nKeyCode like 17 or 16.
>What else i can do in base class to solve this.
>thanks.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform