<?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 : Changed behavior in report item with checkbox!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Changed behavior in report item with checkbox!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 18:37:08 +0000</pubDate>
  <lastBuildDate>Wed, 09 Sep 2009 12:10:46 +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=9088</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[Changed behavior in report item with checkbox! : Thanks for testing (copy - paste...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52889&amp;title=changed-behavior-in-report-item-with-checkbox#52889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 09 September 2009 at 12:10pm<br /><br />Thanks for testing (copy - paste bug) and I don't have proper test case to check.<DIV>This is fresh code and ocx</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportC&#111;ntrolMFCUpdated.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar</A></DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV><a href="https://forum.codejock.com/uploads/BetaOCX/ReportC&#111;ntrolBeta13-2.rar" target="_blank">https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar</A></DIV><DIV></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Wed, 09 Sep 2009 12:10:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52889&amp;title=changed-behavior-in-report-item-with-checkbox#52889</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : Hi Mark,  Yes, the &amp;#039;click&amp;#039;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52888&amp;title=changed-behavior-in-report-item-with-checkbox#52888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 09 September 2009 at 12:04pm<br /><br />Hi Mark,<DIV>&nbsp;</DIV><DIV>Yes, the 'click' problem was fixed with your first post, it was only the icon alignment that still needed fixing.</DIV><DIV>&nbsp;</DIV><DIV>I made the changes you have shown for the icon alignment, but it still didn't work correctly.&nbsp; After a bit of debugging I found the problem to be that the mask values in the code shown in your post (<FONT size=2>0x0F00000 and 0x00F0000</FONT>) are only 7 digits long, they need an extra 0 on the end so they become <FONT size=2>0x0F00000<strong>0</strong> and 0x00F0000<strong>0</strong>.&nbsp; With those changes in place everything now works as expected. <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 09 Sep 2009 12:04:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52888&amp;title=changed-behavior-in-report-item-with-checkbox#52888</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : Well - I tested fix on ReportSample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52883&amp;title=changed-behavior-in-report-item-with-checkbox#52883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 09 September 2009 at 7:46am<br /><br />Well - I tested fix on ReportSample - it react proprely. only on click inside glyph. <DIV>I also extend it to cover combination of alignment flags<FONT size=2></DIV></FONT>]]>
   </description>
   <pubDate>Wed, 09 Sep 2009 07:46:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52883&amp;title=changed-behavior-in-report-item-with-checkbox#52883</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : Hi Mark,  I just moved to version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52880&amp;title=changed-behavior-in-report-item-with-checkbox#52880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 09 September 2009 at 5:08am<br /><br />Hi Mark,<DIV>&nbsp;</DIV><DIV>I just moved to version 13.1 myself and this bug has re-appeared as I had feared, so it's good to get an offical fix for it at last. <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>You said "I consider the way to click on item rectangle (not only on glyph) is&nbsp;simplification for clients", but as I pointed out in my original post this just doesn't work if you have text AND a checkbox in the same cell, clicking on the text to edit it causes the checkbox to change state which is clearly wrong.</DIV><DIV>&nbsp;</DIV><DIV>So thanks for the fix, I've applied it and all is well again, although it looks like the other bug in this method that I reported in my original post is still present, i.e. if you have BOTH a horizontal and vertical alignment set it won't work correctly becuse no masking is done on the nIconAlign value (to extract the horizontal and vertical styles) before each switch statement.&nbsp; <img src="http://forum.codejock.com/smileys/smiley6.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 09 Sep 2009 05:08:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52880&amp;title=changed-behavior-in-report-item-with-checkbox#52880</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : Hey, guys, of course I did not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52869&amp;title=changed-behavior-in-report-item-with-checkbox#52869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 08 September 2009 at 5:46pm<br /><br />Hey, guys, of course I did not know the problem dated 14 December 2007<DIV></DIV>You should at least refresh the post to attract attention but better to open Issue. <DIV></DIV>I consider the way to click on item rectangle (not only on glyph) is&nbsp;simplification for clients. <DIV>&nbsp;</DIV><DIV>I changed it to glyph rectangle now.</DIV><DIV>&nbsp;</DIV><DIV>You can apply this update yourself - add last line in function</DIV><DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPReportRecordItem::DrawCheckBox(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, CRect&amp; rcItem) {</P></FONT><FONT size=2><DIV>...................................................................................</DIV><DIV>m_rcGlyph = rcGlyph; </FONT><FONT color=#008000 size=2>//to restrict click on Glyph area only</DIV></FONT><FONT size=2><P>}</P></FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 08 Sep 2009 17:46:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52869&amp;title=changed-behavior-in-report-item-with-checkbox#52869</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : I&amp;#039;m now experiencing this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52850&amp;title=changed-behavior-in-report-item-with-checkbox#52850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 07 September 2009 at 11:58am<br /><br />I'm now experiencing this problem as well, and would like to see it resolved for the upcoming v13.2 release (if possible).<br><br>The easiest way to reproduce the problem is to modify one of the report sample projects. Just add a checkbox - HasCheckbox(TRUE) - to an EXISTING CXTPReportRecordItem that contains text (don't add the checkbox to a new column, add it to an existing textual column). Then intercept XTP_NM_REPORT_CHECKED as you normally would.<br><br>What you'll find is that clicking <b>anywhere</b> within the column (on the text <i>or</i> the checkbox) causes XTP_NM_REPORT_CHECKED to fire, which is clearly not desirable. This message should be sent <i>only </i>when the checkbox itself is clicked.<br><br>I agree with the assessment of the originator of this topic - the problem lies in m_rcGlyph, the bounds of which are not properly adjusted in this scenario.<br>]]>
   </description>
   <pubDate>Mon, 07 Sep 2009 11:58:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=52850&amp;title=changed-behavior-in-report-item-with-checkbox#52850</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : Can someone from CodeJock please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=29454&amp;title=changed-behavior-in-report-item-with-checkbox#29454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 14 December 2007 at 10:58am<br /><br />Can someone from CodeJock please confirm that these fixes will be in the next release? <DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Fri, 14 Dec 2007 10:58:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=29454&amp;title=changed-behavior-in-report-item-with-checkbox#29454</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : I fixed this problem in CXTPRe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=29408&amp;title=changed-behavior-in-report-item-with-checkbox#29408</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 13 December 2007 at 7:19am<br /><br />I fixed this problem in <FONT size=2><FONT color=#010001>CXTPReportRecordItem</FONT>::<FONT color=#010001>DrawCheckBox()</FONT></FONT>&nbsp;by changing the line: <DIV><FONT color=#010001 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2>CRect</FONT><FONT size=2>&nbsp;</FONT><FONT color=#010001 size=2>rcGlyph</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>m_rcGlyph</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>to</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><DIV><FONT color=#010001 size=2>CRect</FONT><FONT size=2> &amp; </FONT><FONT color=#010001 size=2>rcGlyph</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>m_rcGlyph</FONT><FONT size=2>); // NB: a reference</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV>I also added&nbsp;two more mask values:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>enum</DIV><DIV><DIV></FONT><FONT size=2>{</FONT></DIV><DIV><FONT color=#010001 size=2>&nbsp; xtpColumnIconVMask</FONT><FONT size=2> = 0x0F000000, </FONT><FONT color=#008000 size=2>// A mask for vertical icon alignment styles.</FONT></DIV><DIV><FONT color=#010001 size=2>&nbsp; xtpColumnIconHMask</FONT><FONT size=2> = 0x00F00000, </FONT><FONT color=#008000 size=2>// A mask for horizontal icon alignment styles.</FONT></DIV><DIV><FONT color=#008000 size=2>&nbsp; //xtpColumnIconMask = xtpColumnIconVMask | xtpColumnIconHMask, // A mask for icon alignment styles.</DIV><DIV></FONT><FONT size=2>} ;</FONT></DIV><DIV><FONT size=2>&nbsp;</DIV><DIV>and changed the switch statements to AND (&amp;)&nbsp;the nIconAlign value with the appropriate mask.</DIV><DIV>&nbsp;</DIV><DIV>I would like to know that these fixes will be in the next release so that my code doesn't break when I next upgrade (obviously you can code it your own way, I just need to know it will be fixed)?</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV></FONT></DIV></DIV></FONT>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 07:19:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=29408&amp;title=changed-behavior-in-report-item-with-checkbox#29408</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behavior in report item with checkbox! : I just upgraded from XTP 11.1.3...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=29403&amp;title=changed-behavior-in-report-item-with-checkbox#29403</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 9088<br /><strong>Posted:</strong> 13 December 2007 at 5:13am<br /><br />I just upgraded from XTP 11.1.3 to 11.2.1 and have noticed a change in behavior with report control items that have a checkbox (<FONT color=#010001 size=2>m_bHasCheckbox = TRUE</FONT>). <DIV>&nbsp;</DIV><DIV>In the previous version you had to click in the checkbox to change it (as expected), now clicking anywhere in the cell causes it to change!&nbsp; This is especially problematic when you also have text in the cell, since double clicking the cell to edit the text also causes the checkbox to change state!&nbsp;<img src="https://forum.codejock.com/smileys/smiley18.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>I don't know if this is a bug, but I would like to get back to the previous behavior, can you tell me how to do this?</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV><DIV>&nbsp;</DIV><DIV>PS. I just had a look at the code and the problem appears to be in <FONT color=#010001 size=2>CXTPReportRecordItem</FONT><FONT size=2>::</FONT><FONT color=#010001 size=2>DrawCheckBox() method which no longer adjusts the <FONT color=#010001 size=2>m_rcGlyph member based on the icon position, and instead uses a copy of this rect!</FONT></FONT></DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2><FONT color=#010001 size=2>There also appears to be another bug here, you use two switch statements to determine the horizontal and vertical icon alignment, but if both a horizontal and vertical alignment are set this will fail since the code does not mask for each of these styles before the switch statements.</FONT></FONT></DIV><DIV><FONT color=#010001 size=2></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 05:13:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9088&amp;PID=29403&amp;title=changed-behavior-in-report-item-with-checkbox#29403</guid>
  </item> 
 </channel>
</rss>