Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReportListener Run-Time field alignment
Message
From
08/10/2004 13:06:21
Walter Nicholls
Cornerstone Software Ltd
Auckland, New Zealand
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00949327
Message ID:
00949964
Views:
22
Regarding optimizing...

.oBrush.Create( 0xA8000000 )
.oStringFormat.StringFormat.Create()
.oStringFormat.Alignment= GDIPLUS_ALIGNMENT_FAR
.oFont.Create(...)

.oGR.DrawStringW( m.tcContentsToBeRendered ;
, .oFont ;
, .oGR.MakeGdipRectF( x,y,w,h) ;
, .oStringFormat ;
, .oBrush
)

That's what I meant. And if you want to draw in 100% black, you can leave the brush out entirely.

But if your current code works perfectly, it might be best to leave it alone. It's

Note you can keep the brush, font,stringformat objects hanging round indefinitely, but the graphics handle can change on you so don't optimize out the SetHandle().
Previous
Reply
Map
View

Click here to load this message in the networking platform