Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't want wordwrap!
Message
De
07/03/2007 12:01:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01201400
Message ID:
01201596
Vues:
16
>Hallo.
>Does anyone knows how to avoid wordwrap in edit and textboxes? In labels there is a wordwrap property, but noting in edit and textboxes.
>
>I want to wrap a textstring in my own way with chr(13), and if the box is too short for the string, the last right part should be unvisible outside the box at the same line, and NOT wraped and visible at the next line.

You could set up a grid without any salad around it (headers, scrollbars, delete and record marks, no grid lines, no highlighting etc) with a textbox of your choice as the current control. Have it sit on a cursor with a single character field, one record per memo line. In the .interactivechange of the textbox you could check for length of textbox.text, and just chop the line the way you want, carrying the extra text into the next line.

This all kicks the bucket if the user starts entering text in the middle of a paragraph. You may add another field to the cursor, which would take the extra characters that won't fit the current line (and not show it in the grid)... which is altogether too much code for what you want.

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