Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress event in base class for textbox
Message
 
 
To
22/09/2015 16:44:12
Alex Zhadanov
Computer Generated Solutions
New York City, New York, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01624950
Message ID:
01625029
Views:
140
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform