Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mixed font in memo fields?
Message
De
21/06/2000 08:29:34
 
 
À
20/06/2000 23:07:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00382523
Message ID:
00382614
Vues:
19
>I have an application where it would be desirable to:
>
>(a) have mixed fonts in a single memo field
>(b) if (a) not possible, at least be able to have the same memo field of two independent records have different fonts.




I have never done this, but here are some thoughts:

(a) as you said, you'd have to use a general field and put either a Wordpad object or RTF content

(b) add another field, say "MemoFont" (you might need other fields if you want to change size, style such as bold, italic, etc.). In the Refresh method of your editbox, use something such as (not tested):

THIS.FontName = TableAlias.MemoFont

Of course, you'll probably need to allow the user to change font, so don't forget to save that fontname in the MemoFont field.
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform