I'm having problems discovering how can i find if a property has a sub property for example:
How can i see if Max. Skill Value is a child of swordsmanship?
I tried IsSubProperty() function but it didn't work.
I want to save the information of the property grid in a xml like this:
Furthermore, you didn't say which XML library you use, nor posted any code snippet... I'll assume wxXmlDocument. In this case, it seems to me that the example at the top of the docs of this class show the solution : doc.GetRoot()->GetChildren(). When you get a "skill", get its children and iterate through them
"Keyboard not detected. Press F1 to continue"
-- Windows
I'm using tinyxml but i'm trying to create a xml from the grid not the other way, my problem is to see if max skill value is a child of swordsmanship. By the way you are right i forgot the "" but that wasn't the problem.
majc wrote:I'm using tinyxml but i'm trying to create a xml from the grid not the other way, my problem is to see if max skill value is a child of swordsmanship. By the way you are right i forgot the "" but that wasn't the problem.
Sorry, I guess either you were not clear, either I was asleep (or maybe both)
Well, without telling which control you are using to store the values it's a bit hard to tell.
"Keyboard not detected. Press F1 to continue"
-- Windows