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 |
|
Nitesh Singh
|
Sep 4, 2006 - 3:51 AM
|
Hi Sir.. I have a problem regarding combing two or more property stores..
suppose there are two propertyStores StoreA and StoreB....
StoreA has item names as..... 1. color, 2. length, 3. thickness
StoreB has item names as..... 1. color, 2. center, 3. radius
I want The items displayed in the combined property store to be... only 1. color (as this is the common to both.. the value in that item may vary..)
but when I am using ur combile function.. the comined property store is desplaying all of those which are common or not common... please help.... now while combining I want to get the items which are common in both.. not the union.. (this is required because I have two distinct objects and if both are selected then only properties which are common in both like color should come on the property grid... )
Thank you......
|
|
Nitesh Singh
|
Sep 4, 2006 - 9:47 PM
|
It means... I have to search for the values from all the propertystores.. And find the common propertyitems and add them to a new propertystore.. But it is going to be very tough job as number of objects can be large too.. and a object normally have 15+ property...
Can’t I override the function CExtPropertyStore::Combine();
thank you
|
|
Technical Support
|
Sep 5, 2006 - 11:42 AM
|
If your code knows which properties should not be displayed in the combine mode, then it should be not a problem to create lightweight versions of property trees for further combining and displaying in the property grid control. It seems it may be more user friendly to display all the data in the combined property stores to not confuse the users.
|
|
Technical Support
|
Sep 4, 2006 - 11:40 AM
|
The combined property store will display all the property values from all the source property stores in any case. You should create two absolutely new source property stores with color property values only and use these new stores for creating the combined property store.
|
|