Teechart latest version Brush don't Return Error

TeeChart for ActiveX, COM and ASP
Post Reply
GIT
Newbie
Newbie
Posts: 4
Joined: Mon Aug 20, 2007 12:00 am
Contact:

Teechart latest version Brush don't Return Error

Post by GIT » Mon Oct 24, 2016 6:42 am

hello
Teechart.ocx that I'd previously purchased has been a great help for my work.
Unfortunately, some problem has come up.
The state 'Not being able to register Registry' had occurred in Windows10 RedStone version, Microsoft.
I tried to update the latest version pack in www.steema.com.
but, I found out some logic errors in Windows7, 8 version, as shown below:

* m_TChart1.Series(0).GetAsLine().GetPointer().GetBrush().SetColor(RGB(255,255,255));

This problem seemed to occur because Brush object don't Return.

- Develop Environment : Window7, Visual Studio 6.0 - MFC

Please check it again.

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

Re: Teechart latest version Brush don't Return Error

Post by Yeray » Mon Oct 24, 2016 3:06 pm

Hello,

You may be missing some header:

Code: Select all

#include "CSeries.h"
#include "CLineSeries.h"
#include "CPointer.h"
#include "CBrush0.h"
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.
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

GIT
Newbie
Newbie
Posts: 4
Joined: Mon Aug 20, 2007 12:00 am
Contact:

Re: Teechart latest version Brush don't Return Error

Post by GIT » Tue Nov 01, 2016 12:02 pm

It worked well when we used TChart Control v8.0.0.1.
Since Windows 10 RedStone version, it has been unable to register the registry.

After updating it to v8.0.1.3, it worked well on Windows 10 RedStone but a problem occured on Windows 7.
The problem is line color on the Graph does not change.

The attached file is a sample program and existing program screen.
Please check it out and reply to us.

Thank you for your kind cooperation.
Attachments
ETC_Test_Theta_2.4_GDI(Kefico)_.jpg
ETC_Test_Theta_2.4_GDI(Kefico)_.jpg (123.38 KiB) Viewed 10732 times
TestProject60.zip
(470.01 KiB) Downloaded 1000 times

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

Re: Teechart latest version Brush don't Return Error

Post by Yeray » Wed Nov 02, 2016 9:36 am

Hello,

I've tried to build your project with VC++6 but I can't. It gives me the following error:
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
GIT wrote:The problem is line color on the Graph does not change.
I'm not sure if the problem is in the lines and the image you attached shows the desired result or if the problem is that the pointers are white.
If the problem is in the lines, try changing the code in where you are adding points (in the timer) for this:

Code: Select all

		m_TChart1.Series(0).AddXY(m_nData-1, (m_nData/2), L"", m_TChart1.Series(0).GetColor());
		m_TChart1.Series(1).AddXY(m_nData-1, (m_nData/2)+1, L"", m_TChart1.Series(1).GetColor());
If the problem is in the pointers, just remove the part where you are assigning them to be white:

Code: Select all

	//m_TChart1.Series(0).GetAsLine().GetPointer().GetBrush().SetColor(RGB(255,255,255));		
	//m_TChart1.Series(1).GetAsLine().GetPointer().GetBrush().SetColor(RGB(255,255,255));
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