<?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 : Property Grid VScroll Notify Message</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Property Grid VScroll Notify Message]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 03:35:05 +0000</pubDate>
  <lastBuildDate>Tue, 23 Jul 2019 05:08:54 +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=22989</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[Property Grid VScroll Notify Message : Thanks for the code idea. I did...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=77428&amp;title=property-grid-vscroll-notify-message#77428</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22989<br /><strong>Posted:</strong> 23 July 2019 at 5:08am<br /><br />Thanks for the code idea. I did the same code, and it works great for one element.<div><br></div><div>But consider the following: You have e.g. 2 elements that you want to show properties for. When you click on the first element the property editor is populated with items. Now the topindex will be at 0. If the item list is long you have to scroll down to look at the last items, and the topindex will change to "X". Then you click on the second element, and the property editor is populated with properties for that element. Now the topindex will be at 0 again, since the number of items are different from the two elements. Now if I change back to the first element the the property editor is populated and the topindex will be at 0 again. In this case I would prefer it to scroll down to topindex "X".</div><div><br></div><div>So, I need a way to get notified when the property editor item list is scrolled, and then store the topindex for that element.</div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Tue, 23 Jul 2019 05:08:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=77428&amp;title=property-grid-vscroll-notify-message#77428</guid>
  </item> 
  <item>
   <title><![CDATA[Property Grid VScroll Notify Message : Hi cpede,I have solved this problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=77425&amp;title=property-grid-vscroll-notify-message#77425</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 22989<br /><strong>Posted:</strong> 19 July 2019 at 4:22pm<br /><br /><div>Hi cpede,</div><div><br></div><div>I have solved this problem like this:</div><div><br></div><div>void CPropertyManager::UpdateContent(DWORD dwContentType)<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT(m_wndPropertyGrid.GetSafeHwnd());</div><div><br>&nbsp;&nbsp;&nbsp; int nTopIndex = -1;<br>&nbsp;&nbsp;&nbsp; if (dwContentType == m_dwLastContentType) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nTopIndex = m_wndPropertyGrid.GetTopIndex();<br>&nbsp;&nbsp;&nbsp; }</div><div>&nbsp;&nbsp;&nbsp; CXTPPropertyGridUpdateContext GridContext;<br>&nbsp;&nbsp;&nbsp; m_wndPropertyGrid.BeginUpdate(GridContext, FALSE);</div><div><br></div><div>... Do all modifications and updates</div><div><br></div><div>&nbsp;&nbsp;&nbsp; m_wndPropertyGrid.EndUpdate(GridContext);<br><br>&nbsp;&nbsp;&nbsp; if (nTopIndex &gt;= 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndPropertyGrid.SetTopIndex(nTopIndex);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Verhindert das Scrollen <br></div><div>}</div><div><br></div><div>it works perfekt for me....<br></div>]]>
   </description>
   <pubDate>Fri, 19 Jul 2019 16:22:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=77425&amp;title=property-grid-vscroll-notify-message#77425</guid>
  </item> 
  <item>
   <title><![CDATA[Property Grid VScroll Notify Message : Still not changed in v19 ??OK,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=77420&amp;title=property-grid-vscroll-notify-message#77420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22989<br /><strong>Posted:</strong> 17 July 2019 at 2:51am<br /><br />Still not changed in v19 ??<div><br></div><div>OK, why is this so important? If you have a long Property Grid which requires the vertical scrollbar to be visible, and you change a property value in the lower part of the property grid, it tends to scroll up to the beginning, hiding the property just edited.<br><div><br></div><div>I propose the following changes in XTPPropertyGridView.cpp:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div><font size="1">void CXTPPropertyGridView::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)</font></div><div><font size="1">{</font></div><div><font size="1">:</font></div><div><font size="1">:</font></div><div><font size="1">:</font></div><div>&nbsp;&nbsp;<span style="font-size: x-small;">{</span></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp;CListBox::OnVScroll(nSBCode, nPos, pScrollBar);</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp;RedrawWindow(0, 0, RDW_INVALIDATE | RDW_UPDATENOW | RDW_FRAME | RDW_ALLCHILDREN);</font></div><div><font size="1"><br></font></div><div><font size="1"><div><b>&nbsp; &nbsp; &nbsp; &nbsp;// Added by CPN</b></div><div><b>&nbsp; &nbsp; &nbsp; &nbsp;SendNotifyMessage(XTP_PGN_USER, 13);</b></div><div>&nbsp; }</div></font></div><div><font size="1">}</font></div></div><div></pre></td></tr></table></div><div><br></div><div>and</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div><font size="1">LRESULT CXTPPropertyGridView::OnScrollControl()</font></div><div><font size="1">{</font></div></div><div><font size="1">:</font></div><div><font size="1">:</font></div><div><font size="1">:</font></div><div><div><font size="1">&nbsp; RedrawWindow(0, 0, RDW_INVALIDATE | RDW_UPDATENOW | RDW_FRAME | RDW_ALLCHILDREN);</font></div><div><font size="1"><br></font></div><div><b><font size="1">&nbsp; // Added by CPN</font></b></div><div><b><font size="1">&nbsp; SendNotifyMessage(XTP_PGN_USER, 13);</font></b></div><div><font size="1"><br></font></div><div><font size="1">&nbsp; return lResult;</font></div><div><font size="1">}</font></div></div><div></pre></td></tr></table></div><div><br></div></div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Wed, 17 Jul 2019 02:51:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=77420&amp;title=property-grid-vscroll-notify-message#77420</guid>
  </item> 
  <item>
   <title><![CDATA[Property Grid VScroll Notify Message : Can anyone confirm that this will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=75153&amp;title=property-grid-vscroll-notify-message#75153</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22989<br /><strong>Posted:</strong> 26 September 2016 at 10:30am<br /><br />Can anyone confirm that this will be added in v17.3?<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Mon, 26 Sep 2016 10:30:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=75153&amp;title=property-grid-vscroll-notify-message#75153</guid>
  </item> 
  <item>
   <title><![CDATA[Property Grid VScroll Notify Message : I find it useful to have a notification...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=74644&amp;title=property-grid-vscroll-notify-message#74644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22989<br /><strong>Posted:</strong> 06 April 2016 at 5:13am<br /><br />I find it useful to have a notification whenever the Property Editor is scrolled vertically.<div><span style="line-height: 1.4;">This way I can ensure that when I update the control the scroll position is kept.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">But the Property Editor does not send notification when scrolled. Therefore I added a call to&nbsp;</span></div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>SendNotifyMessage(XTP_PGN_USER,13);</div><div></pre></td></tr></table></div><div><br></div><div>last in the functions</div><div><br></div><div><span style="line-height: 16.8px;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div>CXTPPropertyGridView::OnVScroll</div><div><br></div><div>CXTPPropertyGridView::OnScrollControl</div><div><span style="line-height: 16.8px;"></pre></td></tr></table></span></div><div><span style="line-height: 16.8px;"><br></span></div><div><span style="line-height: 16.8px;">Can you make an official notification message, so I don't have to add this every time the XTToolkit changes version.</span></div><div><span style="line-height: 16.8px;"><br></span></div><div><span style="line-height: 16.8px;">-cpede</span></div>]]>
   </description>
   <pubDate>Wed, 06 Apr 2016 05:13:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22989&amp;PID=74644&amp;title=property-grid-vscroll-notify-message#74644</guid>
  </item> 
 </channel>
</rss>