<?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 : How can I force horizontal scrollbar to appear</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : How can I force horizontal scrollbar to appear]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 09:48:08 +0000</pubDate>
  <lastBuildDate>Tue, 09 Jun 2009 10:27:44 +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=14307</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[How can I force horizontal scrollbar to appear : Just to wind up this topic .....I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49748&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49748</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 14307<br /><strong>Posted:</strong> 09 June 2009 at 10:27am<br /><br />Just to wind up this topic .....<br><br>I've got it working now.&nbsp; For the benefit of others with the same problem, here's what I did:<br><br>1. When adding the columns to the grid, set the last parameter (to the Add() method) to "false".&nbsp; This tells the grid to respect the column widths when it is resized. (This was what I was missing earlier.)<br><br>2. Subsequently, set each column's Resizable to "true" (this is not essential for this solution; it allows the user to resize the columns manually).<br><br>3. Set the grid's AutoColumnSizing to "false".<br><br>4. In the grid's Resize event, added code to loop through the columns collection, changing the width of each column in proportion to the change in the width of the grid. <br><br>I now have the behaviour I want (almost). In particular, the horizontal scrollbar appears when needed, and the columns fill the grid to the right on resizing, that is, there is no unwanted white space.<br><br>It's still not perfect. Occassionally, the scrollbar disappears for no obvious reason after a resize. But it comes back again if you just resize the form by a pixel or two in either direction. I think I can live with that.<br><br>Mike<br>]]>
   </description>
   <pubDate>Tue, 09 Jun 2009 10:27:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49748&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49748</guid>
  </item> 
  <item>
   <title><![CDATA[How can I force horizontal scrollbar to appear : Hi Aaron,I haven&amp;#039;t had time...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49279&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 14307<br /><strong>Posted:</strong> 22 May 2009 at 10:44am<br /><br />Hi Aaron,<br><br>I haven't had time to try your suggestions, as I got sidetracked on another project. With luck, I'll get back to it next week.<br><br>Mike<br>]]>
   </description>
   <pubDate>Fri, 22 May 2009 10:44:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49279&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49279</guid>
  </item> 
  <item>
   <title><![CDATA[How can I force horizontal scrollbar to appear : Hi,  I&amp;#039;m not sure if my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49144&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49144</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14307<br /><strong>Posted:</strong> 19 May 2009 at 9:56am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I'm not sure if my previous reply works <strong>properly</strong> with V13.0 (maybe you have to wait for V13.1 release)</DIV><DIV>See post <a href="https://forum.codejock.com/forum_posts.asp?TID=13379" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=13379</A>&nbsp;for specific details </DIV><DIV>&nbsp;</DIV><DIV>Well if you need more help, just post in forum <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 09:56:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49144&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49144</guid>
  </item> 
  <item>
   <title><![CDATA[How can I force horizontal scrollbar to appear : Hi Aaron,Many thanks for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49116&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 14307<br /><strong>Posted:</strong> 18 May 2009 at 12:03pm<br /><br />Hi Aaron,<br><br>Many thanks for your reply.<br><br>I've tried setting minimum column widths, and setting AutoSize to .F. Now, I'm seeing the full widths of the columns when the grid is at its maximum size. But when I make it smaller, I only occasionally see the scroll bar. In other words, it's intermittent.<br><br>Clearly, I need to figure out how to create the problem in a reproducible way. If I can do that, I'll post some more details here.<br><br>I haven't yet tried your suggestion for getting rid of the white space. I'll do that next, but it's a slightly lower priority.<br><br>I'll report back when I've got some more information.<br><br>Mike<br>]]>
   </description>
   <pubDate>Mon, 18 May 2009 12:03:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49116&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49116</guid>
  </item> 
  <item>
   <title><![CDATA[How can I force horizontal scrollbar to appear : Hi,   Well you said it yourself,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49070&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14307<br /><strong>Posted:</strong> 16 May 2009 at 5:18am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Well you said it yourself, you have to set AutoColumnSizing to false in order to have horizontal scrollbars... </DIV><DIV>&nbsp;</DIV><DIV>But...&nbsp;You can have AutoColumnSizing set to True, if you would set MinimumWidth for columns. When RC resizes the columns will AutoResize as well, if columnwidths equals/less than width, RC forces the horizontal scrollbar to be visible as well. </DIV><DIV>&nbsp;</DIV><DIV>About "white space" you could add last column using:</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim xtremeColumn As XtremeReportControl.ReportColumn<BR>&nbsp;&nbsp;&nbsp;&nbsp;Set xtremeColumn = wndReportControl.Columns.Add(.......)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xtremeColumn.<strong>DrawHeaderDivider</strong> = False</DIV><DIV>&nbsp;</DIV><DIV>At least it looks like it's last column <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;This&nbsp;will only work when&nbsp;columns can't be moved, grouped etc. etc.&nbsp;Could be done but you have to add code in columnchanged event and always set last column <strong>DrawHeaderDivider flag = false</strong></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>You could consider using variable rowheight, the&nbsp;contents will be completely&nbsp;visible all the time and in combination with MinimumHeight you can have AutoColumnSizing and don't have to care about last column.</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps you a little <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 16 May 2009 05:18:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49070&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49070</guid>
  </item> 
  <item>
   <title><![CDATA[How can I force horizontal scrollbar to appear : I am using the Report control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49044&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49044</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5187">Mike Lewis</a><br /><strong>Subject:</strong> 14307<br /><strong>Posted:</strong> 15 May 2009 at 8:06am<br /><br />I am using the Report control to show a grid, in which there are maybe ten to 12 columns. It won't be possible for me to arrange things so that all the data in all the columns is always visible. The user will want to widen some of the columns, and use a horizontal scroll bar to see any colums that are outside the viewing area.<br><br>What I'm looking for is a way of forcing the horizontal scroll bar to be visible.<br><br>I have tried setting the control's AutoSize to false, which I understand is necessary for the scrollbar to appear. Unfortunately, that means that, if the user resizes the form and makes the grid wider, the columns don't resize. Instead, there is white space to the right of the right-most column, which is undesirable. But even if I accept the white space, I've found that setting AutoSize to false doesn't itself make the scrollbar appear. <br><br>I'd appreciate any suggestions. What I'd ideally like to have is a permanent scrollbar, and for the columns to resize themselves automatically when the grid is made either wider or narrower.<br><br>My platform is Visual FoxPro 9.0, under Windows XP and Vista. I'm using the ActiveX version of the control. I'm not looking for any FoxPro-specific help. If someone can give me a solution in general terms, I can apply it to my specific platform<br><br>Thanks in advance.<br><br>Mike<br>]]>
   </description>
   <pubDate>Fri, 15 May 2009 08:06:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14307&amp;PID=49044&amp;title=how-can-i-force-horizontal-scrollbar-to-appear#49044</guid>
  </item> 
 </channel>
</rss>