Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtPropertyGridCtrl and focus Collapse All
Subject Author Date
Denis Trotsky Jun 16, 2008 - 6:21 AM

Hi,



I have problem with CExtPropertyGrid. In my application I create property store (object of CExtPropertyStore) for each my internal objects. If user select objects on main form of application, property store of that object are sent in CExtPropertyGrid in this method:



void CafwModelView::SelectProperty(CafwModelItemData* pModelItemData)

{

    CExtPropertyGridComboBoxBar * pCombo =

        STATIC_DOWNCAST(

        CExtPropertyGridComboBoxBar,

        m_pPropertyGridCtrl->GetChildByRTC(

            RUNTIME_CLASS(CExtPropertyGridComboBoxBar)

            )

        );

    ASSERT_VALID( pCombo );

    if (NULL != pModelItemData)

m_pPropertyGridCtrl->PropertyStoreSet (pModelItemData->GetPropertyStore());

);




Problem is concerning in following. For example, object A has 3 properties, and object B has 4 properties. If user does following steps:

1)    User select object B (calling my method SelectProperty());

2)    User select 4th property of object B in CExtPropertyGridCtrl;

3)    User select object A (calling my method SelectProperty());

After performing last step, exception is rising in assertion:



ULONG CExtTreeGridDataProvider::_Tree_MapRowToCache( ULONG nRowNo ) const

{

...

    ASSERT( nRowNo < ULONG(m_arrGridVis.GetSize()) );

...

}




As I understand, problem with focus. After selecting object A, control move focus on 4th property, but It is not exist.



Please, help me to solve this problem.

Denis Trotsky Jun 17, 2008 - 1:42 AM

I am using Prof-UIS v.2.81.


Our subscription to update the already over. How can I correct the mistake without a new subscription?

Technical Support Jun 16, 2008 - 2:01 PM

This problem was known in v.2.82 and older versions. You should not encounter it with v.2.83. Which Prof-UIS version you are using?

Denis Trotsky Jun 18, 2008 - 3:07 AM

I am using Prof-UIS v.2.81.


Our subscription to update the already over. How can I correct the bug without a new subscription?

Technical Support Jun 19, 2008 - 5:46 AM

We usually recommend our customers switch to a newer (the best is to the latest one) version because we do not support old versions. So why don’t you simply use v.2.83 in which this is fixed?