Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Rich-text question
Message
From
11/03/1999 05:30:46
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
11/03/1999 04:43:17
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00196257
Message ID:
00196264
Views:
32
>How do I prevent the KeyPress Event from typing the last pressed key ?
>
>I want to change curtain characters (code) to a text string.

Because this is an ActiveX control, you can't use the standard NODEFAULT method to stop a key being pressed, try this in the KEYPRESS event of your RichTextCtl

*** ActiveX Control Event ***
LPARAMETERS keyascii

IF keyAscii = ASC("A")
keyascii=0
THIS.SELTEXT = "DON'T PRESS A"
ENDIF
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform