Page 1 of 2

new-line character

Posted: Fri Feb 21, 2014 9:30 am
by 9523580
Hi,
I used TeeChart 7.0.1.4 version. In this version, I used '/r/n' as new-line character of X aisx's label. It works correctly.
I upgraded TeeChart OCX to 7.0.1.5 version. But new-line character does not work correctly.

The new-line character is changed?

Re: new-line character

Posted: Fri Feb 21, 2014 10:40 am
by yeray
Hello,

What kind of application are you developing for?
In VB6 you can use vbNewLine, ie:

Code: Select all

  TChart1.AddSeries scBar
  Dim i As Integer
  For i = 0 To 4
    TChart1.Series(0).Add 25 + Rnd * 75, "hello" + vbNewLine + "label" + Str$(i), clTeeColor
  Next i

Re: new-line character

Posted: Tue Feb 25, 2014 8:36 am
by 9523580
I'm developing c++ MFC application.

Re: new-line character

Posted: Wed Feb 26, 2014 4:22 pm
by yeray
Hi Seth,
Seth wrote:I'm developing c++ MFC application.
\n seems to work fine for me with the Dragging Points example shipped with the installation at "\Examples\Visual C++\Version 6\Dragging Points" in VS2010.

Code: Select all

	m_ctrlChart.AddSeries(scBar);
	int i;
	for (i = 0; i < 4; i++) {
		m_ctrlChart.Series(0).Add(25 + rand() * 75, "hello\nlabel" + i, clTeeColor);
	}

Re: new-line character

Posted: Wed Mar 12, 2014 11:03 am
by 9523580
In all TeeChart OCX Version(including 7.0.1.4 and 7.0.1.5), '\n' is used as new-line character?

Re: new-line character

Posted: Thu Mar 13, 2014 10:40 am
by yeray
Hi Seth,

It depends on the IDE.
With VB6 and TeeChart v7.0.1.5 I could use vbNewLine.
With VS2010 you should be able to use "\n".

If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Thanks in advance.

Re: new-line character

Posted: Wed Mar 19, 2014 1:40 am
by 9523580
I want to try to test example(\Examples\Visual C++\Version 6\Dragging Points).
but my examples are built failed.

Can you send me 'Dragging Points' example that works fine?
(hjlee@m2soft.co.kr)

OR

Can you try to test example with 7.0.1.5 Unicode version OCX?

Re: new-line character

Posted: Thu Mar 20, 2014 3:34 pm
by Pep
Hello Seth,

I'm afraid I've not been able to reproduce the problem here by using the TeeChart Pro ActiveX v7.0.1.5. All seems to work fine here related to the line break on axis labels. I'm using the '\r' to separate the text lines.
I've attached a simple VC6 example with which I'm doing the tests. Could you please check if it's working fine for you by using the same sample ?

Re: new-line character

Posted: Fri Mar 21, 2014 5:07 am
by 9523580
Thank you very much for your sample!!

I checked this problem by using your sample.
And then I succeeded to reproduce this problem!

My reproduction steps are as follow:
1. I registered 7.0.1.4 OCX by using "RegSvr32" (https://www.dropbox.com/s/yc86l32jk1dtkja/1.png).
2. I checked your sample (https://www.dropbox.com/s/qrcf3gvn9hwjwoh/1-1.png).
3. I registered 7.0.1.5 OCX by using "RegSvr32" (https://www.dropbox.com/s/8bc2dl5pckexvc5/2.png).
4. I checked your sample (https://www.dropbox.com/s/fw1k4umazvt7rpd/2-1.png).

I didn't edit your sample.

Re: new-line character

Posted: Fri Mar 21, 2014 12:07 pm
by Pep
Hello Seth,

I've just sent a directly to you mail account which includes an ocx version which is working fine here so you can test it there.
Please take a look and let us know something.

Re: new-line character

Posted: Mon Mar 24, 2014 2:14 am
by 9523580
I'm sorry.
He who use that mail account changed company.
So, I changed mail account to hjlee@m2soft.co.kr.
please, Can you resend me that e-mail(includes OCX)?

Re: new-line character

Posted: Mon Mar 24, 2014 10:22 am
by Pep
Hello Seth,

sure, done !

Re: new-line character

Posted: Thu Mar 27, 2014 6:49 am
by 9523580
I checked this problem by using OCX you sent.
When I use this OCX, the sample program and my program work fine.

By the way, Is this OCX Unicode version?

Re: new-line character

Posted: Thu Mar 27, 2014 8:58 am
by yeray
Hi Seth,
Seth wrote:By the way, Is this OCX Unicode version?
TeeChart ActiveX is Full Unicode since v2010 as you can read in the release notes:
* Transparent Unicode support
TeeChart ActiveX version now supports unicode input/output for all versions. Languages
may changed for all single and double-byte charactersets at design and/or runtime.

Re: new-line character

Posted: Thu Mar 27, 2014 4:09 pm
by yeray
Hi Seth,

Ah, sorry, just realised you are in TeeChart v7.
It seems that the version Pep sent you isn't unicode. If you need a unicode version we can prepare one for you.