new-line character

TeeChart for ActiveX, COM and ASP
Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: new-line character

Post by Seth » Fri Mar 28, 2014 5:34 am

Hi,

I'm using TeeChart v7.
When I use ONLY Unicode OCX, this problem is reproduced.

Is there unicode OCX which works fine?

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: new-line character

Post by Seth » Thu Apr 03, 2014 9:38 am

How long do I have to wait to recieve Unicode OCX file which works fine?

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

Re: new-line character

Post by Pep » Thu Apr 03, 2014 10:34 am

Hello Seth,

sorry for delay on the answer.
In the case you want to continue using the TeeChart Pro ActiveX v7 (unicode version), as v7 is not fully Unicode compliant it cannot work with multiline texts assigned directly through the Series.Add methods. To be able to use multiline you will have to set the text lines into the OnGetAxisLabel event, as there wont try to check the unicode.
Here an example of code (I've just tested with the latest TeeChart Pro ActiveX v7 Update version v7.0.1.6 available at the customers download page) :

Code: Select all

void CDemovc7015Dlg::OnOnGetAxisLabelTchart1(long Axis, long SeriesIndex, long ValueIndex, BSTR FAR* LabelText) 
{
	// TODO: Add your control notification handler code here

	CString strLabel(*LabelText); 
        strLabel = "hello\n\rlabel"; 
        strLabel.SetSysString(LabelText); 	
}

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: new-line character

Post by Seth » Tue Apr 08, 2014 9:02 am

Hello Pep.

It works really fine!!!!!!!!!!!!!!!!!!!!
Thank you very much.

Post Reply