Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GdiPlusX and FontStyles
Message
 
To
27/12/2007 15:38:01
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Miscellaneous
Thread ID:
01277925
Message ID:
01278568
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform