Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another Rich-text question
Message
De
11/03/1999 05:30:46
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
11/03/1999 04:43:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00196257
Message ID:
00196264
Vues:
36
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform