Page 1 of 1

Teechart latest version Brush don't Return Error

Posted: Mon Oct 24, 2016 6:42 am
by 15046497
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.

Re: Teechart latest version Brush don't Return Error

Posted: Mon Oct 24, 2016 3:06 pm
by yeray
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.

Re: Teechart latest version Brush don't Return Error

Posted: Tue Nov 01, 2016 12:02 pm
by 15046497
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.

Re: Teechart latest version Brush don't Return Error

Posted: Wed Nov 02, 2016 9:36 am
by yeray
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));