Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReportTip: PictureTemplates, CalcFields, GDI+, and You
Message
 
 
À
02/07/2004 14:55:56
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00919934
Message ID:
00920303
Vues:
27
It actually does affect screen display, Joel.

If you google gdi gdiplus padding measurestring quickly, you will find innumerable references like the following:

---
Graphics.MeasureString doesn't return the right size
microsoft.public.dotnet.framework.windowsforms
I'm trying to determine if I have to show a tooltip for a listbox item by comparing the width of the item with the width returned by MeasureString for the item's text. But MeasureString seems to return a slightly higher value than the actual width. So I drew the text myself using Graphics.DrawString, and indeed, it draws it wider than the text in the listbox, even though I'm passing the Font used ...
----


And yes there is a technical reason, actually several, not one simple one, which is why you may not have noticed that it affects screen display.

This article might help you get started:

http://support.microsoft.com/default.aspx?scid=kb;en-us;307208

OTOH, if you mean specifically "VFP forms", VFP doesn't use GDI+ for *everything* in screen display, so if you mean (say) textboxes there is no reason why it should be affecting that.

>L<
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform