<?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 : Problems with vertical scrollbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Problems with vertical scrollbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 02:21:55 +0000</pubDate>
  <lastBuildDate>Tue, 14 Aug 2012 11:24:43 +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=3147</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[Problems with vertical scrollbar : Hello,it also works when replacing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68748&amp;title=problems-with-vertical-scrollbar#68748</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1169">farr02</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 14 August 2012 at 11:24am<br /><br />Hello,<br><br>it also works when replacing the <table width="99%"><tr><td><pre class="BBcode">pItem-&gt;GetGrid()-&gt;SetTopIndex(pItem-&gt;GetGrid()-&gt;GetTopIndex());</pre></td></tr></table> line with <table width="99%"><tr><td><pre class="BBcode">pItem-&gt;GetGrid()-&gt;SetCurSel(pItem-&gt;GetIndex());</pre></td></tr></table>. <br>Maybe one can add <table width="99%"><tr><td><pre class="BBcode">m_pGrid-&gt;SetCurSel(m_nIndex);</pre></td></tr></table> to the library function <table width="99%"><tr><td><pre class="BBcode">CXTPPropertyGridItem::Expand()</pre></td></tr></table><br>This should fix the problem.<br><br>Bye<br>&nbsp;&nbsp; Holger.<br>]]>
   </description>
   <pubDate>Tue, 14 Aug 2012 11:24:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68748&amp;title=problems-with-vertical-scrollbar#68748</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with vertical scrollbar : Hello again,when I add the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68747&amp;title=problems-with-vertical-scrollbar#68747</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1169">farr02</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 14 August 2012 at 10:33am<br /><br />Hello again,<br><br>when I add the following code to the OnGridNotify function of the PropertyGrid sample (together with the above mentioned variable heights items) I get a correct scrollbar behavior:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>if(wParam == XTP_PGN_ITEMEXPANDCHANGED)<br>{<br>&nbsp;&nbsp;&nbsp; CXTPPropertyGridItem* pItem = (CXTPPropertyGridItem*)lParam;<br>&nbsp;&nbsp;&nbsp; if (pItem)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem-&gt;GetGrid()-&gt;SetTopIndex(pItem-&gt;GetGrid()-&gt;GetTopIndex());<br>&nbsp;&nbsp;&nbsp; }<br>}<br></pre></td></tr></table><br><br>I don't know what side effects the above code has, but during debugging the PropertyGrid sample I saw that CListBox::SetTopIndex recalculates the scrollbar. So I just gave it a try. It is not what I would tell a good solution but maybe it can be a hint for the CodeJock team on how to improve the library code.<br><br>Bye<br>&nbsp;&nbsp; Holger.<br><br>]]>
   </description>
   <pubDate>Tue, 14 Aug 2012 10:33:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68747&amp;title=problems-with-vertical-scrollbar#68747</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with vertical scrollbar : Hello cpede,sorry for the delay...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68746&amp;title=problems-with-vertical-scrollbar#68746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1169">farr02</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 14 August 2012 at 5:30am<br /><br />Hello cpede,<br><br>sorry for the delay but I have to do some Java programming since a couple of weeks...<br>No, I haven't found a solution or workaround for the problem you mentioned. To be honest I haven't looked for a solution very hard because it is marked as a minor and hard to detect problem in our software. (And I relied on Oleg;-) But I am still interested in a solution.<br><br>Best regards,<br>&nbsp;&nbsp; Holger.<br>]]>
   </description>
   <pubDate>Tue, 14 Aug 2012 05:30:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68746&amp;title=problems-with-vertical-scrollbar#68746</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with vertical scrollbar : Did you ever find a solution for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68638&amp;title=problems-with-vertical-scrollbar#68638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 20 July 2012 at 10:19am<br /><br />Did you ever find a solution for this problem?<DIV>&nbsp;</DIV><DIV>It is even more visible when using the <FONT size=2>CXTPMarkupListBox control.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>-cpede</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 20 Jul 2012 10:19:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=68638&amp;title=problems-with-vertical-scrollbar#68638</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with vertical scrollbar : Yes, catched it.  Actually seems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9430&amp;title=problems-with-vertical-scrollbar#9430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 04 November 2005 at 4:47am<br /><br /><P>Yes, catched it. </P><P>Actually seems it is&nbsp;standard ListBox control bug&nbsp;- it not refresh scrollbar after SetItemHeight for LBS_OWNERDRAWVARIABLE items.</P><P>Trying to find workaround.</P>]]>
   </description>
   <pubDate>Fri, 04 Nov 2005 04:47:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9430&amp;title=problems-with-vertical-scrollbar#9430</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with vertical scrollbar : Hello Oleg, I am already using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9425&amp;title=problems-with-vertical-scrollbar#9425</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1169">farr02</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 04 November 2005 at 3:19am<br /><br />Hello Oleg,<br>I am already using XTP v. 9.80 together with Visual Studio 6.0. <br>I can produce the problem as follows:<br>I add the following code<br><br><div style="margin-left: 40px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCustom = m_wndPropertyGrid.AddCategory(_T("Height:&nbsp; 72"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem =pCustom-&gt;AddChildItem(new CXTPPropertyGridItem(_T("Variable Height1"), _T("Height 72")));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem-&gt;SetHeight(72);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCustom = m_wndPropertyGrid.AddCategory(_T("Height: 144"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem =pCustom-&gt;AddChildItem(new CXTPPropertyGridItem(_T("Variable Height2"), _T("Height 144")));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem-&gt;SetHeight(144);<br></div><br>to the OnInitDialog-function of CPropertyGridDlg-class (in filePropertyGridDlg.cpp of GridSample, right behind the "CustonButtons"-category).<br>Then I run the application, enlarge the window a little bit (currentlyit has a height of 510&nbsp; pixel, width doesn't matter), expand the"Height: 72"-category, after that expand the "Height: 144"-category andget no scrollbar but nearly half of the "Height: 144"-item isinvisible. If you collapse "Height: 72"-category and expand it again ascrollbar occurs but it has a wrong length as you can see the length ofthe bar changing, when clicking on it.<br><br>BTW if the window is a little bit bigger (lets say height about 520pixel) no scrollbar occurs when expanding/collapsing "Height:72"-category ("Height: 144"-category remains expanded). But also halfof the "Height: 144"-category is not visible.<br><br>Hope this helps you to reproduce the error.<br><br>Bye<br>&nbsp;&nbsp; Holger<br><br><br>]]>
   </description>
   <pubDate>Fri, 04 Nov 2005 03:19:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9425&amp;title=problems-with-vertical-scrollbar#9425</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with vertical scrollbar : Hmmm... using 9.80 I can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9420&amp;title=problems-with-vertical-scrollbar#9420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 04 November 2005 at 12:49am<br /><br />Hmmm... using 9.80 I can't reproduce it... Can you download evaluation version and check if problem was fixed?]]>
   </description>
   <pubDate>Fri, 04 Nov 2005 00:49:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9420&amp;title=problems-with-vertical-scrollbar#9420</guid>
  </item> 
  <item>
   <title><![CDATA[Problems with vertical scrollbar : Hello, I have two problems with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9397&amp;title=problems-with-vertical-scrollbar#9397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1169">farr02</a><br /><strong>Subject:</strong> 3147<br /><strong>Posted:</strong> 03 November 2005 at 7:39am<br /><br />Hello,<br>I have two problems with the vertical scrollbar in the property-grid. Ihave added two more categories to the GridSample. They only hold onevariable height item each. When these categories are expanded andanother category will be expanded so that the visible grid becomesbigger than the corresponding window the vertical scrollbar does notappear. The image below shows this problem:<br><br><div style="text-align: center;"><img src="uploads/farr02/2005-11-03_072414_00MissingScrollbar.jpg" border="0"><br></div><br>The second problem may have the same cause as the first one. Afterexpanding another category the vertical scrollbar appears but itslength is incorrect. When I click it, the scrollbar gets shorter. Seethe second picture.<br><br><div style="text-align: center;"><img src="uploads/farr02/2005-11-03_072800_01ScrollbarLength.jpg" border="0"><br></div><br>It looks like a problem in calculating the correct height of the grid. I hope someone can help me.<br><br>Best regards,<br>&nbsp;&nbsp; Holger<br><br>]]>
   </description>
   <pubDate>Thu, 03 Nov 2005 07:39:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3147&amp;PID=9397&amp;title=problems-with-vertical-scrollbar#9397</guid>
  </item> 
 </channel>
</rss>