Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editing fields without using the mouse
Message
De
13/03/2003 16:00:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00765549
Message ID:
00765580
Vues:
23
Kjell,

Putting this in your keypress() method will cause it to behave like the editbox (you can put it in your baseclass):
LPARAMETERS nKeyCode, nShiftAltCtrl

if nKeyCode = 4 and nshiftaltctrl = 0
    with this
        if .selLength > 0
            .selStart = .selStart + .selLength
            nodefault
        endif
    endwith
endif



>Yes, I just tested the same in an editbox, and it worked as it schould.
>But it dont work in a textboxes.
>When I press right arrow, the insertpoint will be between 4 and 5,
>and when I press the left arrow the insertpoint is between 2 and 3.
>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform