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 Tech Support » CExtGridCellCheckListComboBox problem Collapse All
Subject Author Date
Offer Har Nov 15, 2006 - 2:50 PM

Hi,

I have a cell class derived from CExtPropertyValue in a CExtPropertyGridCtrl derived property grid.
I would like that all the options in the list will be checked when the user presses a button.
I have added a function with this as its content:
    
void CCheckComboProperty::SetCheckedItemData()
{
    CExtGridCellCheckListComboBox* pCell = (CExtGridCellCheckListComboBox*)ValueActiveGet();

    for (int k=0; k<pCell->GetCount(); k++)
    {
        pCell->ItemCheckSet(k, true);
    }
}

But nothing happens.

Please note that the grid calls PropertyStoreSynchronize() after this function, but still nothing.

Please let me know what i’m doing wrong, or fix this bug.

Thanks.

Technical Support Nov 17, 2006 - 11:36 AM

We are testing grid cell classes now. We would appreciate any additional comments and suggestions about particular grid cell classes.

Offer Har Nov 17, 2006 - 11:40 AM

Dear Support,
Am I true to assume that you were able to re-create the problem?

Technical Support Nov 17, 2006 - 1:18 PM

The CExtGridCellCheckListComboBox-related problem should not appear in the latest 2.62 you downloaded because the code that changes a list box item clears the empty state of the grid cell.

Offer Har Nov 27, 2006 - 7:56 AM

Any news?
Did you fix this bug?
Were you able to re-create it?

Offer Har Nov 17, 2006 - 1:32 PM

Dear Support,
The problem is in the latest version.
Please note that the problem have nothing to do with the new empty state (I think...) it has to do with the checked state as i described above.

I am attaching the original post :

I have a cell class derived from CExtPropertyValue in a CExtPropertyGridCtrl derived property grid.
I would like that all the options in the list will be checked when the user presses a button.
I have added a function with this as its content:

void CCheckComboProperty::SetCheckedItemData()
{
CExtGridCellCheckListComboBox* pCell = (CExtGridCellCheckListComboBox*)ValueActiveGet();

for (int k=0; k<pCell->GetCount(); k++)
{
pCell->ItemCheckSet(k, true);
}
}

But nothing happens.

Please note that the grid calls PropertyStoreSynchronize() after this function, but still nothing.

Technical Support Nov 30, 2006 - 1:05 PM

It seems we found what the problem was caused by. Please find the CExtGridCellComboBox declaration and update these two ITEM_INFO constructors:

ITEM_INFO(
    __EXT_MFC_SAFE_LPCTSTR lpszString,
    DWORD dwItemData = 0,
    INT nImage = -1,
    INT nSelectedImage = -1,
    INT nOverlayImage = -1,
    INT nIndent = 0,
    INT nCheck = 0
    )
    : m_sString( lpszString )
    , m_dwItemData( dwItemData )
    , m_nImage( nImage )
    , m_nSelectedImage( nSelectedImage )
    , m_nOverlayImage( nOverlayImage )
    , m_nIndent( nIndent )
    , m_nCheck( nCheck )
{
}
ITEM_INFO( const ITEM_INFO & other )
    : m_sString( other.m_sString )
    , m_dwItemData( other.m_dwItemData )
    , m_nImage( other.m_nImage )
    , m_nSelectedImage( other.m_nSelectedImage )
    , m_nOverlayImage( other.m_nOverlayImage )
    , m_nIndent( other.m_nIndent )
    , m_nCheck( other.m_nCheck )
{
}




Offer Har Nov 29, 2006 - 10:30 PM

Dear Support,
Still waiting any reply regarding this bug.
Thanks,
Ron.