<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4366671410070576626.post7478547108586776640..comments</id><updated>2011-10-18T14:51:12.639-03:00</updated><category term='worldcup'/><category term='tools'/><category term='DTPT'/><category term='news'/><category term='deployment'/><category term='Best practices'/><category term='optimizations'/><category term='version'/><category term='custom controls'/><category term='general'/><category term='Fleux'/><category term='panorama app'/><category term='activesync'/><category term='samples'/><category term='GUI'/><category term='OAC'/><category term='WMDC'/><category term='Blocks'/><category term='CabWizFixer'/><category term='internet'/><category term='connectivity'/><category term='.Net CF'/><category term='gac'/><category term='Unit Testing'/><category term='training'/><title type='text'>Comments on Mobile PractiCEs: Multi-line Graphics.MeasureString implementation o...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.mobilepractices.com/feeds/7478547108586776640/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html'/><author><name>Jose Gallardo</name><uri>http://www.blogger.com/profile/06990898488326736094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://www.vl-abogados.com.ar/mobilepractices/josecusco.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-2245667364864128673</id><published>2011-03-15T17:50:55.726-03:00</published><updated>2011-03-15T17:50:55.726-03:00</updated><title type='text'>Thank you! Thank you! Thank you!!!</title><content type='html'>Thank you! Thank you! Thank you!!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2245667364864128673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2245667364864128673'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1300222255726#c2245667364864128673' title=''/><author><name>l33tChicken</name><uri>http://openid.twowaymonkeybar.com/jhudson</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-876752559'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-8712853547987386372</id><published>2010-06-15T23:08:58.557-03:00</published><updated>2010-06-15T23:08:58.557-03:00</updated><title type='text'>Amigo, excelente post.  Me salvaste la vida en cue...</title><content type='html'>Amigo, excelente post.  Me salvaste la vida en cuestion de minutos!! Un abrazo desde Venezuela.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8712853547987386372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8712853547987386372'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1276654138557#c8712853547987386372' title=''/><author><name>Victor Espina</name><uri>http://www.blogger.com/profile/00326701048524315194</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://photos1.blogger.com/img/191/5583/640/foto.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1721045877'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-2403216086420831839</id><published>2010-05-11T16:30:05.952-03:00</published><updated>2010-05-11T16:30:05.952-03:00</updated><title type='text'>Thanks José, really helped me get past the block.
...</title><content type='html'>Thanks José, really helped me get past the block.&lt;br /&gt;&lt;br /&gt;archimed7592&amp;#39;s suggestion for different font handling was very helpful</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2403216086420831839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2403216086420831839'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1273606205952#c2403216086420831839' title=''/><author><name>Girish the great</name><uri>http://www.blogger.com/profile/17537391259591983330</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1139370704'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-527778190225190275</id><published>2010-01-29T06:32:12.912-03:00</published><updated>2010-01-29T06:32:12.912-03:00</updated><title type='text'>It&amp;#39;s perfect and very helpful. Thank you.</title><content type='html'>It&amp;#39;s perfect and very helpful. Thank you.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/527778190225190275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/527778190225190275'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1264757532912#c527778190225190275' title=''/><author><name>Hamid Mirzaei</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-392797919'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-8701577723864998287</id><published>2010-01-25T13:16:08.631-03:00</published><updated>2010-01-25T13:16:08.631-03:00</updated><title type='text'>Got a little problem, VS2008 can´t find the coredl...</title><content type='html'>Got a little problem, VS2008 can´t find the coredll.dll.&lt;br /&gt;&lt;br /&gt;Where can I get this file for Compact Framework 3.5?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8701577723864998287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8701577723864998287'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1264436168631#c8701577723864998287' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1105896249'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-8044646463386199985</id><published>2010-01-25T11:49:04.045-03:00</published><updated>2010-01-25T11:49:04.045-03:00</updated><title type='text'>Thanks so much for this post! I&amp;#39;ve been bangin...</title><content type='html'>Thanks so much for this post! I&amp;#39;ve been banging my head off my desk for 4 days trying to figure out how to do this! EXACTLY what I needed!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8044646463386199985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8044646463386199985'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1264430944045#c8044646463386199985' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-273186786'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-8959658320895898087</id><published>2009-09-16T10:11:19.238-03:00</published><updated>2009-09-16T10:11:19.238-03:00</updated><title type='text'>&amp;gt; Nabs said...
&amp;gt; A rather crude implementati...</title><content type='html'>&amp;gt; Nabs said...&lt;br /&gt;&amp;gt; A rather crude implementation&lt;br /&gt;&lt;br /&gt;Nabs, your implementation doesn&amp;#39;t take into account word wrapping. This implementation could produce label with clipped lines or with empty ones.&lt;br /&gt;&lt;br /&gt;Original implementation in such cases works just great, you only have to consider label&amp;#39;s internal padding.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8959658320895898087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/8959658320895898087'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1253106679238#c8959658320895898087' title=''/><author><name>archimed7592</name><uri>http://www.blogger.com/profile/16528361727405426189</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://lh3.google.com/archimed7592/RpQCv2DPuBI/AAAAAAAAABk/xNNXEtfEv20/Photo-0079.jpg?imgmax=400#5085692900194367506'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-908362726'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-6522630349524315051</id><published>2009-09-16T06:44:22.571-03:00</published><updated>2009-09-16T06:44:22.571-03:00</updated><title type='text'>A rather crude implementation (that I have not ext...</title><content type='html'>A rather crude implementation (that I have not extensively tested in all scenarios) would be to use MeasureString and divide the returned width with the holding container&amp;#39;s width, e.g:&lt;br /&gt;&lt;br /&gt;string thetext; //Text string&lt;br /&gt;Font font; //Font to be used&lt;br /&gt;Graphics g = this.CreateGraphics();&lt;br /&gt;SizeF s = g.MeasureString(thetext, font);&lt;br /&gt;int numlines = ((int)s.Width / labelDesc.Width) + 1;&lt;br /&gt;labelDesc.Height = (int)s.Height * numlines;&lt;br /&gt;&lt;br /&gt;This gives a rather tight fit so its probably worth experimenting with adding an extra 6pts as suggested in the original article.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/6522630349524315051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/6522630349524315051'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1253094262571#c6522630349524315051' title=''/><author><name>Nabs</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-69607147'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-2711092066142560761</id><published>2009-03-16T19:30:00.000-03:00</published><updated>2009-03-16T19:30:00.000-03:00</updated><title type='text'>Thanks, Jose!&lt;br&gt;&lt;br&gt;I&amp;#39;ve slightly modified it...</title><content type='html'>Thanks, Jose!&lt;BR/&gt;&lt;BR/&gt;I&amp;#39;ve slightly modified it to take into account different fonts.&lt;BR/&gt;&lt;BR/&gt;Mainly the difference is concentrated in these four lines:&lt;BR/&gt;&lt;BR/&gt;var hFont = label.Font.ToHfont();&lt;BR/&gt;var oldHFont = Api.SelectObject(hDc, hFont);&lt;BR/&gt;// ...&lt;BR/&gt;Api.SelectObject(hDc, oldHFont);&lt;BR/&gt;Api.DeleteObject(hFont);&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;Full code:&lt;BR/&gt;&lt;BR/&gt;public static class LabelHelper&lt;BR/&gt;{&lt;BR/&gt;    public static int TextHeightForWidth(this Label label, Graphics g, string text)&lt;BR/&gt;    {&lt;BR/&gt;        var bounds = new Api.Rect(label.ClientRectangle);&lt;BR/&gt;&lt;BR/&gt;        var hDc = g.GetHdc();&lt;BR/&gt;&lt;BR/&gt;        var hFont = label.Font.ToHfont();&lt;BR/&gt;&lt;BR/&gt;        var oldHFont = Api.SelectObject(hDc, hFont);&lt;BR/&gt;&lt;BR/&gt;        var flags = Api.DT_CALCRECT | Api.DT_WORDBREAK;&lt;BR/&gt;&lt;BR/&gt;        Api.DrawText(hDc, text, text.Length, ref bounds, flags);&lt;BR/&gt;&lt;BR/&gt;        Api.SelectObject(hDc, oldHFont);&lt;BR/&gt;&lt;BR/&gt;        Api.DeleteObject(hFont);&lt;BR/&gt;&lt;BR/&gt;        g.ReleaseHdc(hDc);&lt;BR/&gt;&lt;BR/&gt;        return bounds.Bottom - bounds.Top;&lt;BR/&gt;    }&lt;BR/&gt;&lt;BR/&gt;    public static int TextHeightForWidth(this Label label, Graphics g)&lt;BR/&gt;    {&lt;BR/&gt;        return label.TextHeightForWidth(g, label.Text);&lt;BR/&gt;    }&lt;BR/&gt;&lt;BR/&gt;    public static int TextHeightForWidth(this Label label, string text)&lt;BR/&gt;    {&lt;BR/&gt;        Control ctrl = label;&lt;BR/&gt;        while (!(ctrl is Form) &amp;amp;&amp;amp; ctrl != null)&lt;BR/&gt;            ctrl = label.Parent;&lt;BR/&gt;&lt;BR/&gt;        if (ctrl == null)&lt;BR/&gt;            throw new NotSupportedException(&amp;quot;Can&amp;#39;t create graphics for label outside a form&amp;quot;);&lt;BR/&gt;&lt;BR/&gt;        var form = (Form) ctrl;&lt;BR/&gt;        using (var g = form.CreateGraphics())&lt;BR/&gt;            return label.TextHeightForWidth(g, text);&lt;BR/&gt;    }&lt;BR/&gt;&lt;BR/&gt;    public static int TextHeightForWidth(this Label label)&lt;BR/&gt;    {&lt;BR/&gt;        return label.TextHeightForWidth(label.Text);&lt;BR/&gt;    }&lt;BR/&gt;&lt;BR/&gt;    internal static class Api&lt;BR/&gt;    {&lt;BR/&gt;&lt;BR/&gt;        [StructLayout(LayoutKind.Sequential)]&lt;BR/&gt;        public struct Rect&lt;BR/&gt;        {&lt;BR/&gt;            public int Left;&lt;BR/&gt;            public int Top;&lt;BR/&gt;            public int Right;&lt;BR/&gt;            public int Bottom;&lt;BR/&gt;&lt;BR/&gt;            public Rect(Rectangle r)&lt;BR/&gt;            {&lt;BR/&gt;                Left = r.Left;&lt;BR/&gt;                Top = r.Top;&lt;BR/&gt;                Bottom = r.Bottom;&lt;BR/&gt;                Right = r.Right;&lt;BR/&gt;            }&lt;BR/&gt;        }&lt;BR/&gt;&lt;BR/&gt;        public const int DT_CALCRECT = 0x00000400;&lt;BR/&gt;        public const int DT_WORDBREAK = 0x00000010;&lt;BR/&gt;&lt;BR/&gt;        [DllImport(&amp;quot;coredll.dll&amp;quot;)]&lt;BR/&gt;        public static extern int DrawText(IntPtr hdc, string lpStr, int nCount, ref Rect lpRect, int wFormat);&lt;BR/&gt;&lt;BR/&gt;        [DllImport(&amp;quot;coredll.dll&amp;quot;)]&lt;BR/&gt;        public static extern IntPtr SelectObject(IntPtr hdc, IntPtr obj);&lt;BR/&gt;&lt;BR/&gt;        [DllImport(&amp;quot;coredll.dll&amp;quot;)]&lt;BR/&gt;        public static extern int DeleteObject(IntPtr obj);&lt;BR/&gt;    }&lt;BR/&gt;}&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;It can be used in several ways:&lt;BR/&gt;&lt;BR/&gt;label.Height = label.TextWidthForHeight();&lt;BR/&gt;&lt;BR/&gt;label.Height = label.TextWidthForHeight(&amp;quot;some text to measure&amp;quot;);&lt;BR/&gt;&lt;BR/&gt;using(var g = this.CreateGraphics())&lt;BR/&gt;   label.Height = label.TextWidthForHeight(g, &amp;quot;some text to measure&amp;quot;);&lt;BR/&gt;&lt;BR/&gt;// ... and so on&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;Hope that will help somebody.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2711092066142560761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2711092066142560761'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1237242600000#c2711092066142560761' title=''/><author><name>archimed7592</name><uri>http://www.blogger.com/profile/16528361727405426189</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://lh3.google.com/archimed7592/RpQCv2DPuBI/AAAAAAAAABk/xNNXEtfEv20/Photo-0079.jpg?imgmax=400#5085692900194367506'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-908362726'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-1947082359367392377</id><published>2009-02-16T10:37:00.000-02:00</published><updated>2009-02-16T10:37:00.000-02:00</updated><title type='text'>You're right, it was a copy/paste issue with the b...</title><content type='html'>You're right, it was a copy/paste issue with the blogger editor. I fix it with WLW and it looks fine now. Thanks for the catch!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/1947082359367392377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/1947082359367392377'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1234787820000#c1947082359367392377' title=''/><author><name>Jose Gallardo</name><uri>http://www.blogger.com/profile/06990898488326736094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://www.vl-abogados.com.ar/mobilepractices/josecusco.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-298163699'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-848107443375440708</id><published>2009-02-16T02:34:00.000-02:00</published><updated>2009-02-16T02:34:00.000-02:00</updated><title type='text'>There are two typos in the code, probably due to e...</title><content type='html'>There are two typos in the code, probably due to erroneous copy &amp;amp; paste: &lt;BR/&gt;&lt;BR/&gt;int flags = DT_CALCRECT|DT_WORDBREAK;&lt;BR/&gt;if (textboxControl) flags |= DT_EDITCONTROL;&lt;BR/&gt;&lt;BR/&gt;The OR calculation &amp;quot;|&amp;quot; was missing. The first typos result in a compilation error whereas the second typo result in wrong calculation.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/848107443375440708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/848107443375440708'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1234758840000#c848107443375440708' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1888659372'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-3035432957278481655</id><published>2009-02-12T01:54:00.000-02:00</published><updated>2009-02-12T01:54:00.000-02:00</updated><title type='text'>I am in head each with this problem. &lt;br&gt;Thank you...</title><content type='html'>I am in head each with this problem. &lt;BR/&gt;Thank you so much.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/3035432957278481655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/3035432957278481655'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1234410840000#c3035432957278481655' title=''/><author><name>HuyNQ</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1817534197'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-2172394494619726681</id><published>2009-01-28T17:55:00.000-02:00</published><updated>2009-01-28T17:55:00.000-02:00</updated><title type='text'>Realy appreciate. With love from Russia.</title><content type='html'>Realy appreciate. With love from Russia.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2172394494619726681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2172394494619726681'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1233172500000#c2172394494619726681' title=''/><author><name>Natalya</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1313529209'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-2989034371463773799</id><published>2008-12-10T17:04:00.000-02:00</published><updated>2008-12-10T17:04:00.000-02:00</updated><title type='text'>Perfect!  Just what I was looking for.  Thanks for...</title><content type='html'>Perfect!  Just what I was looking for.  Thanks for posting!!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2989034371463773799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/2989034371463773799'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1228935840000#c2989034371463773799' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1306178773'/></entry><entry><id>tag:blogger.com,1999:blog-4366671410070576626.post-3997556213854139239</id><published>2008-10-02T17:33:00.000-03:00</published><updated>2008-10-02T17:33:00.000-03:00</updated><title type='text'>Extremely useful.  Very nice bit of code.  Thanks ...</title><content type='html'>Extremely useful.  Very nice bit of code.  Thanks very much for posting.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/3997556213854139239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4366671410070576626/7478547108586776640/comments/default/3997556213854139239'/><link rel='alternate' type='text/html' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html?showComment=1222979580000#c3997556213854139239' title=''/><author><name>Dave</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html' ref='tag:blogger.com,1999:blog-4366671410070576626.post-7478547108586776640' source='http://www.blogger.com/feeds/4366671410070576626/posts/default/7478547108586776640' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1793517952'/></entry></feed>
