Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GdiPlusX and FontStyles
Message
 
À
27/12/2007 15:38:01
Information générale
Forum:
Visual FoxPro
Catégorie:
VFPX/Sedna
Divers
Thread ID:
01277925
Message ID:
01278568
Vues:
24
This message has been marked as the solution to the initial question of the thread.
Hi Srdjan,

Probably the most reliable way is to use the BITOR function:
WITH _SCREEN.System.Drawing
 loFont1 = .Font.New("Arial",14, ;
        BITOR(.FontStyle.BoldItalic, .FontStyle.Underlined))

 loFont2 = .Font.New("Arial",14, ;
        BITOR(.FontStyle.Italic, .FontStyle.StrikeOut))
ENDWITH
You can add them together also, but if you combine attributes like BoldItalic+Bold, you will get undesirable results:
WITH _SCREEN.System.Drawing
 loFont1 = .Font.New("Arial",14, ;
        .FontStyle.BoldItalic + .FontStyle.Underlined)

 loFont2 = .Font.New("Arial",14, ;
        .FontStyle.Italic + .FontStyle.StrikeOut)
ENDWITH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform