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 » CExtGridCellColor problem Collapse All
Subject Author Date
Offer Har Oct 16, 2006 - 8:31 AM

Hi,

I need programmatically to set this cell type to be empty (no selected color) until the user selects a color.
How can this be done?

Thanks.

Technical Support Oct 16, 2006 - 11:15 AM

You can apply the __EGCS_EX_UNDEFINED_ROLE extended style for the cell. Then, when the user selects the color, just remove this style:

 // add
 pCellColor->ModifyStyleEx( __EGCS_EX_UNDEFINED_ROLE, 0 );
 
 // remove
 pCellColor->ModifyStyleEx( 0, __EGCS_EX_UNDEFINED_ROLE );


Offer Har Oct 16, 2006 - 7:17 PM

Hi,

It doesn’t work.
I added this function:

void CXXXProperty::SetDontKnow()
{
    CExtGridCellColor* pValue = (CExtGridCellColor*)ValueActiveGet();
    pValue->ModifyStyleEx(__EGCS_EX_UNDEFINED_ROLE, 0);
}

And nothing happened.

Please send a full function or a sample how to use this method.

Thanks.

Technical Support Oct 17, 2006 - 10:40 AM

Unfortunately at the moment there is no convenient and ready-to-use solution for making any cell empty without destroying the cell. It seems we need to implement this feature. So we will add a cell style that indicates that the cell is empty. Please wait a bit.

Offer Har Oct 17, 2006 - 10:44 AM

Please let me know what is your estimation on that one, because we need it ASAP.
In general we need this for every cell type.

Technical Support Oct 17, 2006 - 11:11 AM

Most probably we will implement this feature this week.