Print Page | Close Window

m_nTopIndex in CXTPPropertyGridUpdateContext

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=9469
Printed Date: 30 April 2024 at 11:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: m_nTopIndex in CXTPPropertyGridUpdateContext
Posted By: Barto
Subject: m_nTopIndex in CXTPPropertyGridUpdateContext
Date Posted: 01 February 2008 at 9:36am
Hi, currently the algorithm in CXTPPropertyGrid::BeginUpdate/EndUpdate and SaveExpandingState for storing/restoring the scroll position/top index of the property grid works by storing the ID of the top-most item. However in many cases this item may not have a ID (e.g. child items of PropertyGridItemFlags, etc.) so in this case the scroll position is reset to 0.
 
I think you should add a flag that the top-index is stored/restored "raw", i.e. just using PropertyGrid->GetTopIndex/SetTopIndex. I really don't like to modify the toolkit library sources. BeginUpdate/EndUpdate is not even virtual.....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net