| Subject: | Rich Text formatting when Drawing On a Canvas. |
| Posted by: | Stuart Bloom |
| Date: | Fri, 30 Jan 2009 |
Hi folks, not sure what response I'll get for this, and I hope I'm not being dim or anything, but Googling, etc. is not throwing up any helpful information.
What I have at the moment, is a list box with a number of items, each has a related amount of text, that when you click on an item will display below it, and move the other items down (by increasing the heigh with the OnMeasureItem). Now I have it working and am using DrawText to not only calculate the requireed height, but also to do the draw the text on the canvas. What I would really like to do is, rather than having it output as plain text, I would like to display it with some formatting, e.g. Rich
Text.
I would be eternally grateful if someone can point me in the right direction, preferably without having to parse the format tags myself ;)
Thanks in advance.