Fonts, Objects, and XML

I am creating a skinning system for a music program I wrote. I am trying to store information about gui objects in an xml file.

The file looks something like this

Color [WindowText]
Color [Window]
[Font: Name=Times New Roman, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False]

[Cursor: Default]

for each item.
What I want to do is be able to dump the font info into the xml and read out, but when I do that, I get the font's tostring command resulting in something like [Font: Name=Times New Roman, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False]. This doesnt help me because I would have to go through pains to parse the info out of it. Is there any way to just dump the object into an xml file node and retrieve it without going through parsing hell?

Same question applies for a few other things: colors and cursors. I want it to be easy to read text based information like [transparent] or [blue] just like it is in's interface rather than asigning a hex value.

Any ideas?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!