Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReportTip: PictureTemplates, CalcFields, GDI+, and You
Message
 
 
To
02/07/2004 14:55:56
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00919934
Message ID:
00920303
Views:
26
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<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform