<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : [solved] Set smoothing mode for markup cell</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [solved] Set smoothing mode for markup cell]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 04 Jun 2026 00:58:43 +0000</pubDate>
  <lastBuildDate>Tue, 05 Dec 2017 19:45:14 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=23461</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : Using in ReportSample: void C...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76371&amp;title=solved-set-smoothing-mode-for-markup-cell#76371</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 05 December 2017 at 7:45pm<br /><br />Using in ReportSample:<br><table width="99%"><tr><td><pre class="BBcode">void CReportSampleView::OnReportMarkup()<div>{</div><div>&nbsp; &nbsp;&nbsp;<b><font color="#00cc00">CXTPMarkupContext* pMarkupContext = GetReportCtrl().GetMarkupContext();</font></b></div><div>&nbsp; &nbsp; BOOL bEnabled =&nbsp;<b><font color="#00cc00">pMarkupContext&nbsp;</font></b>!= NULL;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; bEnabled = !bEnabled; // enable ALL</div><div><br></div><div>&nbsp; &nbsp; GetReportCtrl().EnableMarkup(bEnabled);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (<b><font color="#00cc00">pMarkupContext</font></b>)</div><div>&nbsp; &nbsp; {</div><div><font color="#00cc00"><b>&nbsp; &nbsp; &nbsp; &nbsp; pMarkupContext-&gt;SetDefaultSmoothingMode(xtpMarkupSmoothingHighQuality);</b></font></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; pMarkupContext-&gt;SetDefaultTextSmoothing(TRUE);</font></b></div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().GetColumns()-&gt;GetAt(COLUMN_SUBJECT)-&gt;SetCaption(cstrMarkupShortSample);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().GetRecords()-&gt;GetAt(9)-&gt;GetItem(COLUMN_SUBJECT)-&gt;SetCaption(cstrMarkupShortSample);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().GetRecords()-&gt;GetAt(9)-&gt;GetItemPreview()-&gt;SetCaption(cstrMarkupLongSample);&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().RedrawControl();</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().GetColumns()-&gt;GetAt(COLUMN_SUBJECT)-&gt;SetCaption(_T("Subject"));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().GetRecords()-&gt;GetAt(9)-&gt;GetItem(COLUMN_SUBJECT)-&gt;SetCaption(_T("&#091;Codejock&#093; Newsletter"));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().GetRecords()-&gt;GetAt(9)-&gt;GetItemPreview()-&gt;SetCaption(_T("An in-between week here at Codejock. VSLive was last week, TechEd is in a couple of weeks; Last month's article winners have been awarded and this month's voting is just starting; Last week was Winter and this week is forecast to be Summer. It makes a developer want to just kick back and crank some code right? Right?"));&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; GetReportCtrl().RedrawControl();</div><div>&nbsp; &nbsp; }</div>}</pre></td></tr></table>]]>
   </description>
   <pubDate>Tue, 05 Dec 2017 19:45:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76371&amp;title=solved-set-smoothing-mode-for-markup-cell#76371</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : The issue have been fixed by adding...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76366&amp;title=solved-set-smoothing-mode-for-markup-cell#76366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 05 December 2017 at 4:28am<br /><br />The issue have been fixed by adding public methods to&nbsp;CXTPMarkupContext<br>CXTPMarkupContext::SetDefaultSmoothingMode<br>CXTPMarkupContext::GetDefaultSmoothingMode<br><br>CXTPMarkupContext::SetDefaultTextSmoothing<br>CXTPMarkupContext::GetDefaultTextSmoothing<br><br>Fix will be available in next release.]]>
   </description>
   <pubDate>Tue, 05 Dec 2017 04:28:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76366&amp;title=solved-set-smoothing-mode-for-markup-cell#76366</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : Hello adrien,Yes there is a really...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76232&amp;title=solved-set-smoothing-mode-for-markup-cell#76232</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 18 October 2017 at 4:20am<br /><br /><div>Hello adrien,</div><div><br></div><div>Yes there is a really problem.&nbsp; I have confused CXTPMarkupDrawingContext and CXTPMarkupContext.&nbsp; CXTPMarkupDrawingContext is created temporary on every measuring or drawing of ReportItems with markup.<br><br></div><div>So I think good solution will be setting this smoothing option to CXTPMarkupContext which more public than CXTPMarkupDrawingContext. Then every time on creating CXTPMarkupDrawingContext the smoothing option will be copied from CXTPMarkupContext.</div><div><br></div><div>Thank you for bringing this to our attention.</div><div><br></div><div>Regards,</div><div>&nbsp;Oleksandr Lebed</div>]]>
   </description>
   <pubDate>Wed, 18 Oct 2017 04:20:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76232&amp;title=solved-set-smoothing-mode-for-markup-cell#76232</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : OK, I&amp;#039;ve spent now about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76231&amp;title=solved-set-smoothing-mode-for-markup-cell#76231</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 17 October 2017 at 10:39pm<br /><br />OK, I've spent now about a day on this.<div><br></div><div>It looks like fundamentally the report control does not support smooth text in report controls.</div><div><br></div><div>The&nbsp;CXTPMarkupUIElement class has no attribute to remember text smoothing (or any smoothing)</div><div><br></div><div>for markup report row items rendering comes down to&nbsp;</div><div><br></div><div>CXTPReportRecordItem::OnDrawCaption</div><div><br></div><div>this calls&nbsp;</div><div><br></div><div><div>XTPMarkupMeasureElement(m_pMarkupUIElement, rcItem.Width(), INT_MAX);</div><div>XTPMarkupRenderElement(m_pMarkupUIElement, pDrawArgs-&gt;pDC-&gt;GetSafeHdc(), &amp;rcItem);</div></div><div><br></div><div>There's no opportunity to set any features on the markup DC</div><div><br></div><div>I guess I could override&nbsp; CXTPReportRecordItem::OnDrawCaption</div><div><br></div><div>but Thats way too much work for such a simple task.</div><div><br></div><div>If I'm missing something (apart from a sense of humour) please can you tell me how I can get smooth text in a derived report control class which uses markup.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 17 Oct 2017 22:39:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76231&amp;title=solved-set-smoothing-mode-for-markup-cell#76231</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : guess not, sinceCXTPMarkupDrawingContext...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76230&amp;title=solved-set-smoothing-mode-for-markup-cell#76230</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 17 October 2017 at 9:54pm<br /><br />guess not, since&nbsp;CXTPMarkupDrawingContext doesn't derive from CDC I can't pass it into Paint.<div><br></div><div>Looks like I need to patch your DLL.</div>]]>
   </description>
   <pubDate>Tue, 17 Oct 2017 21:54:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76230&amp;title=solved-set-smoothing-mode-for-markup-cell#76230</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : Also, that&amp;#039;s for a markup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76229&amp;title=solved-set-smoothing-mode-for-markup-cell#76229</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 17 October 2017 at 9:48pm<br /><br />Also, that's for a markup pad view, which is your own class.<div><br></div><div>I need to get this into a report control.&nbsp; If I override OnPaint for CXTPReportControl I have to do a LOT of copy / paste figure out how to make it a different kind of device context (e.g. CPaintDC becomes CXTPMarkupDrawingContext etc).</div><div><br></div><div>This is just error prone.&nbsp; It would be very simple since you allow setting a report control to use markup if you would allow the natural extensions of that, e.g. set smoothing.</div><div><br></div><div>Either that or fix the broken support for the XAML font quality attributes so they actually work.</div><div><br></div><div>If Paint() were virtual I could override it.</div>]]>
   </description>
   <pubDate>Tue, 17 Oct 2017 21:48:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76229&amp;title=solved-set-smoothing-mode-for-markup-cell#76229</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : Hithe problem with this is that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76228&amp;title=solved-set-smoothing-mode-for-markup-cell#76228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 17 October 2017 at 7:54pm<br /><br />Hi<div><br></div><div>the problem with this is that means I need to override OnPaint.</div><div><br></div><div>We don't currently do that.&nbsp; It should be possible to set smoothing without having to override OnPaint</div>]]>
   </description>
   <pubDate>Tue, 17 Oct 2017 19:54:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76228&amp;title=solved-set-smoothing-mode-for-markup-cell#76228</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : Hello adrien,You can see how it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76203&amp;title=solved-set-smoothing-mode-for-markup-cell#76203</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 11 October 2017 at 8:27am<br /><br />Hello adrien,<br><br>You can see how it works in our sample&nbsp; Samples\Utilities\MarkupPad\MarkupPadView.cpp<br><table width="99%"><tr><td><pre class="BBcode">void CMarkupPadView::OnPaint()&nbsp;<div>{</div><div>&nbsp; &nbsp; CPaintDC dc(this); // device context for painting</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; CXTPClientRect rc(this);</div><div><br></div><div>&nbsp; &nbsp; CXTPBufferDC dcMem(dc);</div><div>&nbsp; &nbsp; dcMem.FillSolidRect(rc, GetSysColor(COLOR_WINDOW));</div><div><br></div><div>&nbsp; &nbsp; CXTPMarkupDrawingContext dcMarkup(this, dcMem);</div><div>&nbsp; &nbsp; <b><font color="#009900">dcMarkup.SetSmoothingMode(GetDocument()-&gt;GetSmoothingMode(), GetDocument()-&gt;IsTextSmooting());</font></b></div><div>&nbsp; &nbsp; DrawMarkup(&amp;dcMarkup, rc);</div>}</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Wed, 11 Oct 2017 08:27:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76203&amp;title=solved-set-smoothing-mode-for-markup-cell#76203</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : CXTPMarkupDrawingContext constructor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76198&amp;title=solved-set-smoothing-mode-for-markup-cell#76198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 09 October 2017 at 6:52pm<br /><br />CXTPMarkupDrawingContext constructor (all of them) set&nbsp;<div><br></div><div>m_bUseTextSmooting(FALSE)</div><div><br></div><div>are you kidding me?</div><div><br></div><div>You need to make this accessible via the markup context so we can turn it on without patching your code.</div>]]>
   </description>
   <pubDate>Mon, 09 Oct 2017 18:52:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76198&amp;title=solved-set-smoothing-mode-for-markup-cell#76198</guid>
  </item> 
  <item>
   <title><![CDATA[[solved] Set smoothing mode for markup cell : P.S. I want to do this because...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76197&amp;title=solved-set-smoothing-mode-for-markup-cell#76197</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 23461<br /><strong>Posted:</strong> 09 October 2017 at 6:48pm<br /><br />P.S. I want to do this because the default text rendering is very ugly and jaggy.<div><br></div><div>I'm quite disappointed that the default isn't to use a decent text rendering mode.&nbsp; I can't imagine anyone ever wants their text to look unaliased.</div>]]>
   </description>
   <pubDate>Mon, 09 Oct 2017 18:48:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23461&amp;PID=76197&amp;title=solved-set-smoothing-mode-for-markup-cell#76197</guid>
  </item> 
 </channel>
</rss>