Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReportListener Run-Time field alignment
Message
De
08/10/2004 13:06:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00949327
Message ID:
00949964
Vues:
23
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().
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform