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 » ValueDefaultFromActive for CExtPropertyValueCompound Collapse All
Subject Author Date
Suhai Gyorgy Dec 18, 2006 - 8:07 AM

Dear Support,

I have a document with a propertystore, which has both CExtPropertyValue-s and CExtPropertyValueCompound-s inserted into it. When I save my document I want to set the default values to be the current active values, to reflect this save. For this I iterate through the PropertyStore’s items and call ValueDefaultFromActive for each of them. This works great for the pure CExtPropertyValue items, but not for the CExtPropertyValueCompound ones.
I tried to do the same thing in any of your samples, but CompoundProperties only has CExtPropertyValueCompound items, and PropertyGrid sample only has CExtPropertyValue items. Although, I can see the same behaviour in these samples, meaning PropertyGrid works fine, but CompoundProperties does not.

Could you please check this issue?

Thank you for all your help,
Chris.

Technical Support Dec 18, 2006 - 10:53 AM

The CExtPropertyValueCompound class contains simple string cells which are needed for keeping strings built from all children property values. You can invoke the CExtPropertyValueCompound::SynchronizeChildrenTreeDefault() / CExtPropertyValueCompound::SynchronizeChildrenTreeActive() methods to rebuild the default/active combined texts stored inside the compound property values.