<?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 : BUG: Ctrl+Click</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : BUG: Ctrl+Click]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 16:32:57 +0000</pubDate>
  <lastBuildDate>Sat, 28 Jun 2008 22:21:58 +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=11040</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[BUG: Ctrl+Click : Hi wlcabral...Sorry I must have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=37567&amp;title=bug-ctrl-click#37567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 11040<br /><strong>Posted:</strong> 28 June 2008 at 10:21pm<br /><br />Hi wlcabral...Sorry I must have missed your post earlier. Thanks a lot for this trimmed down solution, it is very useful!]]>
   </description>
   <pubDate>Sat, 28 Jun 2008 22:21:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=37567&amp;title=bug-ctrl-click#37567</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: Ctrl+Click : I&#180;m using this code (MS FOXPRO)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36799&amp;title=bug-ctrl-click#36799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2958">wlcabral</a><br /><strong>Subject:</strong> 11040<br /><strong>Posted:</strong> 16 June 2008 at 11:46am<br /><br /><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">I´m using this code (MS FOXPRO) in MouseUp Event :<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">&nbsp;<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">With <FONT size=2>xTremeReportControl</P></FONT></FONT></FONT></SPAN><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">If NOT <SPAN style="COLOR: black">.multipleSelection <o:p></o:p></SPAN></FONT></FONT></SPAN></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt 35.4pt; TEXT-INDENT: 35.4pt"><SPAN lang=EN style="COLOR: black; mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">oItem = .FocusedRow <o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt 35.4pt; TEXT-INDENT: 35.4pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">If <SPAN style="COLOR: black">!</SPAN>Isnull<SPAN style="COLOR: black">(oItem)<o:p></o:p></SPAN></FONT></FONT></SPAN></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt 70.8pt; TEXT-INDENT: 35.4pt"><FONT size=3><FONT face="Arial, Helvetica, sans-serif"><SPAN lang=EN style="COLOR: black; mso-ansi-: EN; mso-fareast-: PT-BR">oItem.</SPAN><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR">Selected <SPAN style="COLOR: black">= True<o:p></o:p></SPAN></SPAN></FONT></FONT></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt 35.4pt; TEXT-INDENT: 35.4pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">endif<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">endif<o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;noSpacing style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN style="mso-ansi-: EN; mso-fareast-: PT-BR"><FONT size=3><FONT face="Arial, Helvetica, sans-serif">endwith<o:p></o:p></FONT></FONT></SPAN></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 11:46:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36799&amp;title=bug-ctrl-click#36799</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: Ctrl+Click : Hi Smucker,Thanks for the reply...I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36762&amp;title=bug-ctrl-click#36762</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 11040<br /><strong>Posted:</strong> 15 June 2008 at 4:19pm<br /><br />Hi Smucker,<br><br>Thanks for the reply...I would expect this too happen if the MultipleSelection property was True, since then adding and removing items by Ctrl+Click would be required. With MultipleSelection=False, I expected the ReportControl to leave at least one item selected at all times (this is how the ListBox appears to behave in single selection mode), but perhaps I need to enforce this behaviour myself.<br><br>Here's a workaround:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private mlngReportControlMouseX As Long<br>private mlngReportControlMouseY As Long<br><br>Private Sub ReportControl1_MouseMove(Button As Integer, Shift As Integer, x As Long, y As Long)<br>&nbsp;&nbsp; mlngReportControlMouseX = x<br>&nbsp;&nbsp; mlngReportControlMouseY = y<br>End Sub<br><br>Private Sub ReportControl1_SelectionChanged()<br>&nbsp;&nbsp; Dim objHT As ReportHitTestInfo<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; If Me.ReportControl1.SelectedRows.Count = 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set objHT = Me.ReportControl1.HitTest(mlngReportControlMouseX, mlngReportControlMouseY)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not objHT Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not objHT.Row Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.ReportControl1.Rows(objHT.Row.Index).Selected = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br><br>I tried a couple of other workarounds that I thought would be cleaner, but they failed for different reason. For example, recording only the Hit row in the MouseDown event when Ctrl has been pressed failed because it seems that SelectionChanged fires before MouseDown (strangely enough). A better method might be to use the GetCursorPos API to encapsulate all the logic in the SelectionChanged event.<br><br>I've only just started using the ReportControl, and I'm surprised to see no SelectionChanging event (or BeforeSelectionChanged) with the ability to cancel the change...It would have been useful in this case (and in others that I can imagine).<br>]]>
   </description>
   <pubDate>Sun, 15 Jun 2008 16:19:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36762&amp;title=bug-ctrl-click#36762</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: Ctrl+Click : I&amp;#039;m not very familiar with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36760&amp;title=bug-ctrl-click#36760</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 11040<br /><strong>Posted:</strong> 15 June 2008 at 3:55pm<br /><br />I'm not very familiar with the report control, but Windows guidelines for extended selections cause Ctrl+Click to add or remove the clicked item from the list of selected items. It doesn't sound like this is happening.<br><br>]]>
   </description>
   <pubDate>Sun, 15 Jun 2008 15:55:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36760&amp;title=bug-ctrl-click#36760</guid>
  </item> 
  <item>
   <title><![CDATA[BUG: Ctrl+Click :  I have a ReportControl with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36759&amp;title=bug-ctrl-click#36759</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 11040<br /><strong>Posted:</strong> 15 June 2008 at 3:32pm<br /><br />I have a ReportControl with these settings:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp; With Me.ReportControl1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnRemove = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnReorder = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnResize = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowColumnSort = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowEdit = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoColumnSizing = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MultipleSelection = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MultiSelectionMode = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PreviewMode = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SelectionEnable = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowRowFocus = False<br>&nbsp;&nbsp;&nbsp; End With<br></pre></td></tr></table><br><br>The ReportControl has 2 records, and if the user presses Ctrl+Click on either record, the entire selection disappears (that is, no rows appear selected). I would think that the clicked row should be selected regardless of whether Ctrl is held when an item is clicked or not.<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Sun, 15 Jun 2008 15:32:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11040&amp;PID=36759&amp;title=bug-ctrl-click#36759</guid>
  </item> 
 </channel>
</rss>