Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Carriage Return in edit box
Message
De
20/08/2008 17:15:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/08/2008 14:54:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Divers
Thread ID:
01340471
Message ID:
01340577
Vues:
18
>I have a simple modal form with an edit box, a save button, and an exit button
>
>The control source of the edit box is a memory variable created from a memo field in a vfp cursor
>
>The contents of the memory variable shows up OK and the save works fine.
>
>Here's my problem:
>
>The user needs to be able to include carriage returns in the text of the memo field.
>
>When I hit Enter while editing the data, the cursor jumps out the edit box to the save button, and there is no carriage return on the text.
>
>There is no default behavior for the editbox.
>
>There is a keypress method for the form that is trapping the escape key, but no others.
>
>Any suggestions, ideas?

Also, check for form.keypreview=.t., and if so, check for code in form.keypress - it may be catching the enter there.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform