Strange characters in axis labels.

TeeChart for ActiveX, COM and ASP
Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Strange characters in axis labels.

Post by Yeray » Thu Oct 21, 2010 1:15 pm

Hi Tony,

Excuse us for the delay with this issue.
We've seen that in some machines "\n\r" works fine, while in others "\r". We are investigating if this could be something related to the each machine "regional settings".
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

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Strange characters in axis labels.

Post by TonyVSUK » Thu Oct 21, 2010 1:44 pm

Let me know if you want any of the settings on my machine (or if you want me to test anything).

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

Re: Strange characters in axis labels.

Post by Pep » Wed Oct 27, 2010 2:53 pm

Hi Tony,

first of all sorry for delay, we've been doing some tests here, with differents OS and Visual Studio versions. At the end we've only been able to reproduce the problem in a Windows 7 (64 bits), all the other test have worked fine.
Which OS are you using ? any 64 ?
If that the case, for the moment we can cosider it as a bug (or nor support for this), so we'll try to find a workaround and solution.

Please, let us know the OS you're using to compare.
Thanks.

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Strange characters in axis labels.

Post by TonyVSUK » Fri Nov 05, 2010 9:32 am

I'm running Windows XP x32. All service packs and updates are applied.

Marc
Site Admin
Site Admin
Posts: 1260
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Strange characters in axis labels.

Post by Marc » Fri Nov 05, 2010 3:59 pm

Hello,

We've been running this test on various machines, the problem isn't showing anywhere. I see a report earlier in the log that '\r' provoked a problem here on a Windows 7 machine but I can't provoke the error now, not even on the same machine, the line returns are clean without unwelcome characters in any case or platform. We'll continue to try to provoke the problem.

Our machines are generally standard English language Windows installations, no special additions. The kind of problem you describe is a frequent IT challenge across multiple environments, a quick search on the search engines affirms that. It is not an isolated case. Why is that happening for text passing into TeeChart for your environment .. we're not sure yet. I'm sorry we're not able to give you a solution yet, but the problem is not occurring for us to be able to attempt any resolution. A question though, if you set that same text to a text variable, and output it to a Label on your form, does the same character show up?

With thanks.
Regards,
Marc Meumann
Steema Support

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Strange characters in axis labels.

Post by TonyVSUK » Fri Nov 05, 2010 4:07 pm

I'm using Visual C++ 2008.

I've got a dialog where a user can type in a label. Just a standard edit box. If they put in multiple lines, the funny characters show up when I pass the string to TChart.

The sample you uploaded (http://www.steema.us/files/public/support/C++AXTest.zip) gives exactly the same behaviour.

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Strange characters in axis labels.

Post by TonyVSUK » Fri Nov 05, 2010 4:09 pm

I can save and upload the chart file if that helps.

Marc
Site Admin
Site Admin
Posts: 1260
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Strange characters in axis labels.

Post by Marc » Fri Nov 05, 2010 4:18 pm

Hello,

Re.
If they put in multiple lines, the funny characters show up when I pass the string to TChart.
...and if you output that to a Label does that character appear?

In the following case on test here all texts are identical (input and output) (here using Axis Title, not a Label):

Code: Select all

private: System::Void button1_Click_1(System::Object^  sender, System::EventArgs^  e) {
			 label1->Text = textBox1->Text;
			 axTChart1->Axis->Bottom->Title->Caption = label1->Text;
		 }
Typing textBox1 with:
hello
world
Regards,
Marc
Steema Support

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Strange characters in axis labels.

Post by TonyVSUK » Fri Nov 05, 2010 5:43 pm

Yes it does appear.

Marc
Site Admin
Site Admin
Posts: 1260
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Strange characters in axis labels.

Post by Marc » Tue Nov 09, 2010 11:29 am

Hello,

Simplifying the issue, we could take the Chart out of the equation and work on getting multiline text from a TextBox to a Label without showing the character. The character doesn't appear here on tests so as we're working with the same test projects it's likely a machine config issue.

Looking at regional settings on the test machine here it's a completely standard US English config, I can't see anything obvious that you could take a look at. Test machines Win2008 and WinXP. Does the problem occur on other machines at your location?

VSNET2008 version revision here: 9.0.30729.1

Regards,
Marc
Steema Support

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Strange characters in axis labels.

Post by TonyVSUK » Tue Nov 09, 2010 1:27 pm

It looks like it might be my machine.

Running it on Vista x64 it's fine. And on another XP machine it is fine.

It's the \n that causes the problems for me. I'll see if I can find some more info on Google and post back the solution (if I can find one).

Tony.

Post Reply