Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Justification in a memo field
Message
De
09/05/1997 17:01:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00031533
Message ID:
00031599
Vues:
53
>>>My client would like to use a memo field to compose the text of an ad (as an alternative to a word processor). I've set the memowidth to 70. I need to do the following: The user should be able to click anywhere in the memofield and choose whether they want to left or right justify or center the text on that line. I've experimented with SelStart,SelText, etc., but haven't been successful. I couldn't find a way to determine which line in the memo they clicked on. If the user hits the enter key on a line, there may be less than 70 characters on that line, so SelStart is somewhat useless. Any ideas?
>>>
>>>Thanks
>>
>>Hi Elise,
>>
>>If you working with Vfp 5.0 why don't you try using a Rich Text Control ? (There's an example on the Solutions.app...)
>>
>>Renato
>
>memo fields don't work that way. they are just one big block of text and aren't treated line by line. mline() may help you, but i don't think you can do what your client wants.


I think you may be able to do it but you will have to do it programmatically. This means that you will have to also programmatically determine where the lines ends unless you are requiring the user to press ENTER after each line (and I suspect you are not going to do this). This may be more work than what it is worth. I like the idea of using the Rich Text control.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform