new-line character

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

new-line character

Post by Seth » Fri Feb 21, 2014 9:30 am

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?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: new-line character

Post by Yeray » Fri Feb 21, 2014 10:40 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

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

Re: new-line character

Post by Seth » Tue Feb 25, 2014 8:36 am

I'm developing c++ MFC application.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: new-line character

Post by Yeray » Wed Feb 26, 2014 4:22 pm

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);
	}
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

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

Re: new-line character

Post by Seth » Wed Mar 12, 2014 11:03 am

In all TeeChart OCX Version(including 7.0.1.4 and 7.0.1.5), '\n' is used as new-line character?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: new-line character

Post by Yeray » Thu Mar 13, 2014 10:40 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

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

Re: new-line character

Post by Seth » Wed Mar 19, 2014 1:40 am

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?
([email protected])

OR

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

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

Re: new-line character

Post by Pep » Thu Mar 20, 2014 3:34 pm

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 ?
Attachments
demovc7015.rar
(470.11 KiB) Downloaded 1636 times

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

Re: new-line character

Post by Seth » Fri Mar 21, 2014 5:07 am

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.

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

Re: new-line character

Post by Pep » Fri Mar 21, 2014 12:07 pm

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.

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

Re: new-line character

Post by Seth » Mon Mar 24, 2014 2:14 am

I'm sorry.
He who use that mail account changed company.
So, I changed mail account to [email protected].
please, Can you resend me that e-mail(includes OCX)?

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

Re: new-line character

Post by Pep » Mon Mar 24, 2014 10:22 am

Hello Seth,

sure, done !

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

Re: new-line character

Post by Seth » Thu Mar 27, 2014 6:49 am

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?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: new-line character

Post by Yeray » Thu Mar 27, 2014 8:58 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: new-line character

Post by Yeray » Thu Mar 27, 2014 4:09 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply