Problems with html in titles

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ronald Hordijk
Newbie
Newbie
Posts: 1
Joined: Thu Jul 27, 2006 12:00 am

Problems with html in titles

Post by Ronald Hordijk » 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.

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 08, 2006 1:30 pm

Hi Ronald,

yes, for the axis title still not possible to use the ttfHtml format. We'll try to add this feature for the next releases.
In meantime a workaround is to use a RichText control as in the demo you can find in the Demo features project (included into the TeeChart Pro installation), do a search for "subscript".

Post Reply