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.
Subject |
Author |
Date |
|
Rado Manzela
|
May 24, 2007 - 2:50 AM
|
After switch from 2.64 to 2.70 CExtGridCellComboBox::SetCurSel() does not work anymore (nothing is selected). The combo box is inserted in property grid and I haven’t changed anything in this code, just upgraded the Prof-uis. Can you check this please? Thank you
|
|
Technical Support
|
May 24, 2007 - 11:47 AM
|
Actually we did not change CExtGridCellComboBox::SetCurSel in 2.70. Could you try reproducing the problem with our PropertyGrid sample?
|
|
Rado Manzela
|
May 26, 2007 - 10:23 AM
|
Just compile the property grid sample with new libraries and run. The behavior/animation combo does not display initial selection.
|
|
Michael Valentine
|
May 29, 2007 - 6:37 AM
|
Hi, we have just upgraded to 2.70 and have the same issue. Has this been resolved? We could do with a workaround fairly quickly if possible?
Thanks
|
|
Rado Manzela
|
May 29, 2007 - 9:08 AM
|
I’m still waiting for support :(
|
|
Technical Support
|
May 29, 2007 - 9:24 AM
|
Thank you for reporting the problem. Please update the following method and recompile the library. void CExtGridCellComboBox::Assign( const CExtGridCell & other )
{
ASSERT_VALID( this );
CExtGridCellString::Assign( other );
CExtGridCellComboBox * pCell =
DYNAMIC_DOWNCAST(
CExtGridCellComboBox,
( const_cast < CExtGridCell * > ( &other ) )
);
ResetContent();
if( pCell != NULL )
{
// copy cell items
ITEM_INFO * pItemCurSel = NULL;
LONG nItem = 0;
for( nItem = 0; nItem < pCell->m_arrItems.GetSize(); nItem++ )
{
ITEM_INFO * pOtherItem = pCell->m_arrItems[ nItem ];
ITEM_INFO * pNewItem = new ITEM_INFO( *pOtherItem );
m_arrItems.Add( pNewItem );
if( pCell->m_pCurSel == pOtherItem )
pItemCurSel = pNewItem;
}
m_bEnumMode = pCell->m_bEnumMode;
SetImageList( pCell->m_pImageList );
if( pItemCurSel != NULL )
{
nItem = _GetIndexOf( pItemCurSel );
SetCurSel( nItem );
}
} // if( pCell != NULL )
} That should fix the problem.
|
|