Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word wrap in a Editbox
Message
 
À
10/08/2000 17:20:06
Ed Gay
Computer Software Consultants
Bangor, Maine, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00403441
Message ID:
00403699
Vues:
14
Ahhhhh....

I just tried the following and it works:
txt = "title     "
txt = txt + "This is the first line" + chr(13)
txt = txt + space(10) + "This is the second line"

Thisform.mytextbox.value = txt
Caveats: If you're using proportionally spaced fonts it will be VERY hard to get things lined up.

If your textbox is too narrow and the box does some of the wrapping for you the formatting will be history.

Alex


>Alex,
>Extra spaces is not the problem, let's see if putting a greater than mark to act as a blank placeholder maybe this will show you what is happening
>
>Title>>>>>This is the way that it is happening,
>the information from the second field it too
>long just wraps around to the start of the line.
>
>Title>>>>>This is the way I'd like it to look. With
>>>>>>>>>>>the information from the second field all
>>>>>>>>>>>aligned under itself rather than to the
>>>>>>>>>>>left.
>
>Now if the spacing stays when I send it just ignore all of the greater than marks that I put at the start of the line and you can see what I'm trying to do. I tried a grid but the second field is a memo field and in some cases you can not see all of the information. If I could figure out where in the memo that the text will wrap then I could put some tabs to make the text move over.
>
>Ed
>
>>If you're having extra spaces you don't want, why not use alltrim()?
>>
>>x = alltrim( a) + " " + alltrim( b)
>>
>>or
>>
>>x = alltrim( a) + chr(13) + alltrim( b)
>>
>>I'm not sure I'm undestanding you correctly...
>>
>>
>>Alex
>>
>>
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform