Multiline Title or Subtitle ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Unger
Newbie
Newbie
Posts: 6
Joined: Sat Dec 06, 2003 5:00 am
Location: NY
Contact:

Multiline Title or Subtitle ?

Post by Unger » Fri Aug 06, 2004 2:48 pm

I am using Webchart, (Tchart for the web), and for one of the charts, I have a long title or subtitle.

How can I get it (the title or subtitle) to automatically wrap to more than one line so that it doesn't get cut off on the screen?

In addition, if the user resizes the window, (i.e. makes it wider or narrower) I would like the subtitle to automatically

adjust itself so that it appears correctly.
Thanks.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Aug 10, 2004 6:27 am

Hi, Unger.

Text wrapping is not done automatically i.e. you'll have to use one of the chart events to:
a) retreive chart width and title/subtitle text and size
b) based on this information, insert \n line separators at appropriate positions in text.
Marjan Slatinek,
http://www.steema.com

Post Reply