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 » CExtPropertyValueCompound: programmatically changing the content Collapse All
Subject Author Date
a a Feb 13, 2006 - 3:38 AM

The following code shows [0, 0] in the CExtPropertyValueCompound, instead of [0, 1].
It seems synchronizing the store after this code doesn’t refresh the content of the CExtPropertyValueCompound.
So, is there another way to do it?


Thanks.


(Excerpt from the store, which will be put in the property grid:)


    {
      CExtPropertyValueCompound &position_property
        = *new CExtPropertyValueCompound("position");
      ItemInsert(&position_property);


      v = new CExtPropertyValue("X");
      v->DescriptionSet("X");
      v->ValueActiveSet(new CExtGridCellVariant(0));
      v->ValueDefaultFromActive();
      position_property.ItemInsert(v);


      v = new CExtPropertyValue("Y");
      v->DescriptionSet("Y");
      v->ValueActiveSet(new CExtGridCellVariant(0));
      v->ValueDefaultFromActive();
      position_property.ItemInsert(v);


      v->ValueActiveGet()->TextSet("1");
    }

Technical Support Feb 13, 2006 - 11:16 AM

Please finally add the following lines:

CExtSafeString str = position_property.BuildCompoundTextActive();
position_property.ValueActiveGet()->TextSet( str ); 
position_property.ValueDefaultGet()->TextSet( str );

a a Feb 13, 2006 - 6:50 PM

Thanks.


Added it to my Update method.