what would be best way to handle simple text styles like bbcode allowing bold italic etc inside of the text?
what I did is dividing the text into parts, each part has assigned style and then I textout each piece, starting from Rect.Left + Canvas.TextWidth(Texts[i-1]). This however is probably quite slow, moreover I have no idea how to text it out in case of VirtualStringTree. It has OnBeforeItemPaint but the callback is not aware of column index. The OnBeforeCellPaint however doesn’t expose the variable to say VST I did painted on my own, therefore it paints on my text…
Anyone, please? 🙂
regards,
Michal
I’ve done something similar using a simple subset of HTML tags. Here’s the code to draw the text:
… and the DoAfterCellPaint call