Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't want wordwrap!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01201400
Message ID:
01201414
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.
>>>
>>>Thankyou
>>>/Kjell
>>
>>Surely that's default behaviour for a textbox anyway?
>
>No, if you make a textbox higher, to hold... lets say 3 lines, so will the lines wrap exactly the same as in editboxes.
>/Kjell

Ah, well I assumed you wouldn't be doing that, to ensure your line doesn't get wrapped.

OK, how about a single-line textbox, with .borderstyle = 0 (none), superimposed over the deeper box. It's thus invisible (till maybe you enter text in it)?

In the .valid of this textbox you reformat the text, with CHR(13) or whatever, then fill the editbox with it, then set your input textbox.visible = .F. (of course, making it visible at data entry time)
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform