Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GdiPlusX and FontStyles
Message
From
31/12/2007 03:21:07
 
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Miscellaneous
Thread ID:
01277925
Message ID:
01278574
Views:
21
Hi Bo,

Will try that.

Thks+++


>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
>
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform