<?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 : Report C&#111;ntrol - DrawGlyph not centering</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Report C&#111;ntrol - DrawGlyph not centering]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 16:44:52 +0000</pubDate>
  <lastBuildDate>Wed, 18 Jan 2006 12:59:27 +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=3530</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[Report C&#111;ntrol - DrawGlyph not centering : Yes, that looks good to me.  Warren  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3530&amp;PID=10593&amp;title=report-control-drawglyph-not-centering#10593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 3530<br /><strong>Posted:</strong> 18 January 2006 at 12:59pm<br /><br />Yes, that looks good to me.<br><br>Warren<br>]]>
   </description>
   <pubDate>Wed, 18 Jan 2006 12:59:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3530&amp;PID=10593&amp;title=report-control-drawglyph-not-centering#10593</guid>
  </item> 
  <item>
   <title><![CDATA[Report C&#111;ntrol - DrawGlyph not centering : Hi Warren,Thanks for your notes,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3530&amp;PID=10592&amp;title=report-control-drawglyph-not-centering#10592</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3530<br /><strong>Posted:</strong> 18 January 2006 at 12:52pm<br /><br />Hi Warren,<br><br>Thanks for your notes, we've already reviewed this piece of functionality for the next version of the toolkit. Alignment flag will be a binary combination of the following flags for setting text and icon alignments independently:<br><table width="99%"><tr><td><pre class="BBcode"><br>enum XTPEnumColumnIconAlignment<br>{<br>&nbsp;&nbsp;&nbsp; xtpColumnTextLeft = DT_LEFT,&nbsp;&nbsp; // Aligns text to the left.<br>&nbsp;&nbsp;&nbsp; xtpColumnTextCenter = DT_CENTER, // Centers text horizontally in the column.<br>&nbsp;&nbsp;&nbsp; xtpColumnTextRight = DT_RIGHT,&nbsp; // Aligns text to the right.<br>&nbsp;&nbsp;&nbsp; xtpColumnTextVCenter = DT_VCENTER,// Centers text vertically.<br>&nbsp;&nbsp;&nbsp; xtpColumnTextWordBreak = DT_WORDBREAK, // Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle. A carriage return-line feed sequence also breaks the line. <br><br>&nbsp;&nbsp;&nbsp; xtpColumnTextMask = 0xFF,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // A mask for text alignment styles.<br><br>&nbsp;&nbsp;&nbsp; xtpColumnIconLeft = 0x00100000, // Aligns icon to the left.<br>&nbsp;&nbsp;&nbsp; xtpColumnIconCenter = 0x00200000, // Centers icon horizontally in the column.<br>&nbsp;&nbsp;&nbsp; xtpColumnIconRight = 0x00400000, // Aligns icon to the right.<br><br>&nbsp;&nbsp;&nbsp; xtpColumnIconMask = 0x00F00000&nbsp; // A mask for icon alignment styles.<br>};<br></pre></td></tr></table><br><br>We suppose that would be enough for a flexible customization.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 18 Jan 2006 12:52:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3530&amp;PID=10592&amp;title=report-control-drawglyph-not-centering#10592</guid>
  </item> 
  <item>
   <title><![CDATA[Report C&#111;ntrol - DrawGlyph not centering : Refering to this image:    The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3530&amp;PID=10587&amp;title=report-control-drawglyph-not-centering#10587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 3530<br /><strong>Posted:</strong> 18 January 2006 at 10:05am<br /><br />Refering to this image:<br><img src="uploads/Warren/2006-01-18_100507_image_not_centered.PNG" border="0"><br><br><br>The checkboxes in my report control are drawing horizontallyleft-aligned, instead of horizontally centered, even when I havespecified:<br><span style="font-family: courier new,courier,mono;">pColumn-&gt;SetAlignment(DT_CENTER);</span><br><br>I believe the issue is in:<br><span style="font-family: courier new,courier,mono;">int CXTPReportPaintManager::DrawGlyph(CDC* pDC, CRect rcColumn, int iIcon)</span><br><br>in the lines:<br><span style="font-family: courier new,courier,mono;">POINT ptIcon;</span><br style="font-family: courier new,courier,mono;"><span style="font-weight: bold; font-family: courier new,courier,mono;">ptIcon.x = rcColumn.left + 1;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">ptIcon.y = rcColumn.top + (szColumn.cy - szImage.cy) /2;</span><br><br>I checked the Report Control sample, and the vertical centering works fine.<br><br>Mabe the best solution would be to check the SetAlignment flag, if that's not too much work ?!?<br><br>Thanks<br><br>Warren<br><br>P.S. Obviously this is not a critical bug - but it would be nice to have it fixed at some point.<br>]]>
   </description>
   <pubDate>Wed, 18 Jan 2006 10:05:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3530&amp;PID=10587&amp;title=report-control-drawglyph-not-centering#10587</guid>
  </item> 
 </channel>
</rss>