Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Puzzling This.Value behavior in textbox
Message
De
23/03/2006 11:57:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01107014
Message ID:
01107029
Vues:
24
Thanks for the reply Sergey. I solved the problem by adding the following code to Textbox.Keypress method:
LPARAMETERS nKeyCode, nShiftAltCtrl
DODEFAULT(m.nKeyCode, m.nShiftAltCtrl)   && Codemine has code that needs to be executed
IF m.nKeyCode = 13
    NODEFAULT
    KEYBOARD '{TAB}'   && Causes Enter to leave field
ENDIF

Alex
>Alex,
>
>See if Re: Enter key zeros out edit change to textbox Thread #935276 relevant to your problem.
>
>>This is a codemine text box, and I wonder if this behavior is specific to codemine or to all of VFP. The undesirable behavior remains if I set This.lNativeBinding = .T., BTW.
>>
>>A textbox is bound to a numeric value, with format = 'L' and inputmask = '99999'.
>>
>>If user clicks and inserts a digit, or changes a digit and then tabs out of field, textbox.value keeps the value seen by user in text box before tab key was hit.
>>
>>On the other hand, if user taps the Enter key after making the change, texttbox.value takes on the value of the first numbers up to and including the one he changed.
>>
>>I want textxbox.value to remain identical to what the user sees whether he tabs out or hits enter.
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform