Problems with html in titles
Posted: Tue Aug 08, 2006 8:16 am
I have some problems with html tags in the titels.
If I enable it in the axis titles like so:
chart.BottomAxis.Title.TextFormat := ttfHtml;
chart.BottomAxis.Title.Caption := 'hell<SUPER>o</SUPER>';
It shows the super tags as normal text.
Html tags work in the Title of the chart, but there are also some strange effects. When I use the following text: TChart<SUPER> super</SUPER><SUB>sub</SUB>
The super is at the same height as the TCHart and the sub look like it is on the next line. also the text is clearly left of the middle of the chart while the aligment is taCenter.
What I really need is showing subscript in the axis titels, is there another way to do this.
If I enable it in the axis titles like so:
chart.BottomAxis.Title.TextFormat := ttfHtml;
chart.BottomAxis.Title.Caption := 'hell<SUPER>o</SUPER>';
It shows the super tags as normal text.
Html tags work in the Title of the chart, but there are also some strange effects. When I use the following text: TChart<SUPER> super</SUPER><SUB>sub</SUB>
The super is at the same height as the TCHart and the sub look like it is on the next line. also the text is clearly left of the middle of the chart while the aligment is taCenter.
What I really need is showing subscript in the axis titels, is there another way to do this.