<?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 : Control key behaviour in multiple selection</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Control key behaviour in multiple selection]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 18:21:22 +0000</pubDate>
  <lastBuildDate>Mon, 18 Jun 2012 05:44:11 +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=19853</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[Control key behaviour in multiple selection :  I have fixed that by replacing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68455&amp;title=control-key-behaviour-in-multiple-selection#68455</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5151">apautrot</a><br /><strong>Subject:</strong> 19853<br /><strong>Posted:</strong> 18 June 2012 at 5:44am<br /><br />I have fixed that by replacing the line 5823 of file&nbsp;XTPReportControl.cpp<div><span ="apple-tab-span"="" style="white-space:pre">	</span>SetFocusedRow(pItemArgs-&gt;pRow);</div><div>with</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>bool bKeyControl = (::GetKeyState(VK_CONTROL) &lt; 0) || m_bMultiSelectionMode;</div><div>&nbsp;<span ="apple-tab-span"="" style="white-space:pre">	</span>SetFocusedRow(pItemArgs-&gt;pRow, bKeyControl);</div><div><br></div><div>Works well now.</div>]]>
   </description>
   <pubDate>Mon, 18 Jun 2012 05:44:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68455&amp;title=control-key-behaviour-in-multiple-selection#68455</guid>
  </item> 
  <item>
   <title><![CDATA[Control key behaviour in multiple selection : HiI have tried the latest version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68454&amp;title=control-key-behaviour-in-multiple-selection#68454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5151">apautrot</a><br /><strong>Subject:</strong> 19853<br /><strong>Posted:</strong> 18 June 2012 at 5:29am<br /><br />Hi<div>I have tried the latest version 13.3.1</div><div>I can isolate the problem with the sample ReportCustomHeap. Uncommenting the two lines at 119</div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>wndReport.AllowEdit(TRUE);<span ="Apple-tab-span" style="white-space:pre">	</span></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>wndReport.FocusSubItems(TRUE);</div></div><div>to get edition of sub items.</div><div>When holding control key, I can add to selection. But holding control + click on an already selected row clears the selection.</div><div><br></div><div>I have digged into the code and put a breakpoint in CXTPReportSelectedRows::Clear.</div><div>The handling of button click (on up event) in OnClick calls EditItem that calls SetFocusedRow with a default value false for parameter&nbsp;bControlKey, which is leading to clearing the actual selection.</div><div><br></div><div>I will try a quick fix until you state on that, can you take a look please ?</div><div><br></div><div><img src="uploads/5151/callstack.png" height="361" width="982" border="0" /></div>]]>
   </description>
   <pubDate>Mon, 18 Jun 2012 05:29:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68454&amp;title=control-key-behaviour-in-multiple-selection#68454</guid>
  </item> 
  <item>
   <title><![CDATA[Control key behaviour in multiple selection : Hi,please update to the latest...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68424&amp;title=control-key-behaviour-in-multiple-selection#68424</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 19853<br /><strong>Posted:</strong> 12 June 2012 at 7:14pm<br /><br />Hi,<br><br>please update to the latest version.<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Tue, 12 Jun 2012 19:14:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68424&amp;title=control-key-behaviour-in-multiple-selection#68424</guid>
  </item> 
  <item>
   <title><![CDATA[Control key behaviour in multiple selection : HiI&amp;#039;m using the report control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68420&amp;title=control-key-behaviour-in-multiple-selection#68420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5151">apautrot</a><br /><strong>Subject:</strong> 19853<br /><strong>Posted:</strong> 12 June 2012 at 11:55am<br /><br />Hi<div>I'm using the report control of Codejock v15.13</div><div>It seems that there is no way to deselect a selected row with the control key.</div><div>I can't unselect a row, I can only clear the selection then select individual rows with control key.</div><div>I was waiting the control to work like standard list view, and have the behaviour of inverting the selection of the clicked row when the control key was pressed.</div><div><br></div><div>Here is my configuration of the report :</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div><div><font face="Courier New, Courier, mono">_report.GetReportHeader() -&gt; AllowColumnReorder ( TRUE );</font></div></div><div><div><font face="Courier New, Courier, mono">_report.SetMultipleSelection ( TRUE );</font></div></div><div><div><font face="Courier New, Courier, mono">_report.FocusSubItems ( TRUE );</font></div></div><div><div><font face="Courier New, Courier, mono">_report.AllowEdit ( TRUE );</font></div></div><div><div><font face="Courier New, Courier, mono">_report.EditOnClick ( TRUE );</font></div></div></blockquote><div><font face="Courier New, Courier, mono"><br></font></div><div>I can see the line 3483 in file&nbsp;XTPReportControl.cpp</div><div><font face="Arial, Helvetica, sans-serif"><br></font></div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div><font face="Courier New, Courier, mono">m_pSelectedRows-&gt;Invert(pRow);</font></div></blockquote><div><font face="Arial, Helvetica, sans-serif"><br></font></div><div>..which never invert the selection, because the pRow is never selected when this line is reached.</div><div><br></div><div>Could you please tell me if the control key should allow to unselect individual selected rows, or if it is an awaited behavior ?</div><div><br></div><div>Thank you.</div>]]>
   </description>
   <pubDate>Tue, 12 Jun 2012 11:55:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19853&amp;PID=68420&amp;title=control-key-behaviour-in-multiple-selection#68420</guid>
  </item> 
 </channel>
</rss>