<?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: Left column</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : SOLVED: Left column]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 23:48:30 +0000</pubDate>
  <lastBuildDate>Sat, 07 Jun 2008 05:46:49 +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=10912</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: Left column : Hi,  Yes you are right about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36402&amp;title=solved-left-column#36402</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10912<br /><strong>Posted:</strong> 07 June 2008 at 5:46am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes you are right about the moved columns, but Elvis can't move the position of the columns because of the labels at the top. </DIV><DIV>&nbsp;</DIV><DIV>But it's nice to have your code when&nbsp;columns are going to be moved <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Sat, 07 Jun 2008 05:46:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36402&amp;title=solved-left-column#36402</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Left column : Yeah, your code works provided...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36398&amp;title=solved-left-column#36398</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 10912<br /><strong>Posted:</strong> 07 June 2008 at 4:37am<br /><br />Yeah, your code works provided the user hasn't moved columns into different positions.<br><br>Also, the Left parameter will contain 0 when horizontal scrollbar is fully left (so your 'If l &gt; 0 then' line will fail and the function return zero by default).<br><br>Anyway, I think CJ need to change the GetItemRect call to return negative values as opposed to zeros when item is not in view.<br>]]>
   </description>
   <pubDate>Sat, 07 Jun 2008 04:37:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36398&amp;title=solved-left-column#36398</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Left column :   ijwelch wrote:Try something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36391&amp;title=solved-left-column#36391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10912<br /><strong>Posted:</strong> 07 June 2008 at 2:29am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by ijwelch" alt="Originally posted by ijwelch" style="vertical-align: text-bottom;" /> <strong>ijwelch wrote:</strong><br /><br />Try something like this (VB6) which seems to work regardless of column order:<BR><BR><FONT color=#006600><FONT color=#000000>I've only just put this together so be careful<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></FONT><BR></FONT></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi Ian,</DIV><DIV>&nbsp;</DIV><DIV>Elvis did a post&nbsp;<a href="https://forum.codejock.com/forum_posts.asp?TID=10894" target="_blank">Scrollbar Event</A>&nbsp;and I made a sample for this and I included simular what did (well almost simular) </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Private Function GetFirstVisibleColumn()<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim i As Integer<BR>&nbsp;&nbsp;&nbsp; Dim l As Long<BR>&nbsp;&nbsp;&nbsp; Dim t As Long<BR>&nbsp;&nbsp;&nbsp; Dim r As Long<BR>&nbsp;&nbsp;&nbsp; Dim b As Long<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; For i = 0 To wndReportControlData.Columns.Count - 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wndReportControlData.Rows(wndReportControlData.FocusedRow.Index).GetItemRect wndReportControlData.FocusedRow.record(i), l, t, r, b<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If l &gt; 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>GetFirstVisibleColumn = i - 1&nbsp;</strong>'return column index<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Function<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp; <BR>End Function</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>It's a little bit cheating but it works <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Sat, 07 Jun 2008 02:29:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36391&amp;title=solved-left-column#36391</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Left column : Try something like this (VB6)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36384&amp;title=solved-left-column#36384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 10912<br /><strong>Posted:</strong> 06 June 2008 at 11:29pm<br /><br />Try something like this (VB6) which seems to work regardless of column order:<br><br><font color="#006600">Private Function GetFirstVisibleColumnIndex(Optional bFullyVisible As Boolean = True) As Long<br>Dim i As Long<br>Dim lColumnCount As Long<br>Dim lLeft As Long<br>Dim lRight As Long<br>Dim lTop As Long<br>Dim lBottom As Long<br>Dim lLeftmostIndex As Long<br>Dim lLeftmostLeft As Long<br><br>If rpt.Rows.Count Then<br>&nbsp;&nbsp;&nbsp; lColumnCount = rpt.Columns.Count - 1<br>&nbsp;&nbsp;&nbsp; lLeftmostLeft = 999999<br>&nbsp;&nbsp;&nbsp; For i = 0 To lColumnCount<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rpt.Rows(1).GetItemRect rpt.Rows(1).Record.Item(i), lLeft, lTop, lRight, lBottom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lRight &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'it's at least partially visible<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If bFullyVisible Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (lRight - lLeft) &gt;= rpt.Columns.Column(i).Width Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lLeftmostLeft = lLeft<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; GetFirstVisibleColumnIndex = lLeftmostIndex<br>Else<br>&nbsp;&nbsp;&nbsp; GetFirstVisibleColumnIndex = -1<br>End If<br>End Function<br><br><font color="#000000">I've only just put this together so be careful<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"></font><br></font>]]>
   </description>
   <pubDate>Fri, 06 Jun 2008 23:29:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36384&amp;title=solved-left-column#36384</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Left column : Well, my really question is: There...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36356&amp;title=solved-left-column#36356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2416">ElvisM</a><br /><strong>Subject:</strong> 10912<br /><strong>Posted:</strong> 06 June 2008 at 11:15am<br /><br /><P>Well, my really question is: There is a way to know the left column's index in the report control?. Not the column's index where is the focus...</P><DIV>I don't know if you understandme.</DIV><DIV>&nbsp;</DIV><DIV>When the user moves the horizontal scrollbar the report control changes the columns, and maybe the focused columns&nbsp;hides of the reportcontrol. But I wanna know the left columns index in every moment that the user moves the horizontal scrollbar...</DIV><DIV>&nbsp;</DIV><DIV>Regards and excuseme by my bad english.</DIV>]]>
   </description>
   <pubDate>Fri, 06 Jun 2008 11:15:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36356&amp;title=solved-left-column#36356</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Left column : Hi,  Did you set wndReportControl.FocusSubItems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36285&amp;title=solved-left-column#36285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10912<br /><strong>Posted:</strong> 05 June 2008 at 2:23am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Did you set wndReportControl.FocusSubItems = true ?</DIV><DIV>&nbsp;</DIV><DIV>If you mean the first visible column: see the sample in your other post <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 05 Jun 2008 02:23:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36285&amp;title=solved-left-column#36285</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Left column : Hi friends.  There&amp;#039;s a way...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36281&amp;title=solved-left-column#36281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2416">ElvisM</a><br /><strong>Subject:</strong> 10912<br /><strong>Posted:</strong> 04 June 2008 at 6:08pm<br /><br />Hi friends. <DIV>There's a way to know the left columns index in a reportcontrol? <DIV>I'm using the Focusedcolumn property, but it fails. Maybe because I'm using frozencolumns and allrowselected.</DIV><DIV>&nbsp;</DIV><DIV>regards.</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 04 Jun 2008 18:08:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10912&amp;PID=36281&amp;title=solved-left-column#36281</guid>
  </item> 
 </channel>
</rss>