Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text Box
Message
De
05/03/2002 10:17:23
 
 
À
05/03/2002 03:15:26
Ashish Patel
Hindustan Petroleum
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00628249
Message ID:
00628406
Vues:
14
Ashish,

Here is yet another way to change keystrokes from one value to another. This is only an example...you can keep a couple of strings to serve hold a list of 'convert from' characters and 'convert to' characters. You also have to deal with uppercase and lowercase issues.
* keypress() method
LPARAMETERS nKeyCode, nShiftAltCtrl

if nKeyCode = asc('A')
	nKeyCode = asc('X')
endif
nodefault
dodefault(nKeyCode, nShiftAltCtrl)
>Hi
>
>I want to display someother characters as soon as user keys-in.
>
>E.g. If user keyis in "A" it should give "X".
> For "B" it should display "Z"
>
>This is because I want to create a text box which displays indian font.
>And when user's key's in "A" I will capture "A" and related character will
>be displayed in text box.
>
>In this How I will be able to take care of Backspace ?
>
>I tried kypress Event.
>But it doesn't work properly.
>
>Thanks in Advance.
>
>Ashish
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform