Page 1 of 1

What's wrong with CSeries?

Posted: Sun Jul 30, 2023 10:50 am
by 16696323
----------

Code: Select all

CSeries lineSer;
LineSer.put_ Color (RGB (255,0,0));
------------
The above sentence reported an error of 80020005.

But if you call this:
--------------

Code: Select all

CSeries lineSer;
lineSer.get_ Color();
--------------
the color value can be obtained normally.

I really don't know what the reason is? I'm going crazy

Re: What's wrong with CSeries?

Posted: Wed Aug 02, 2023 11:56 am
by Marc
Hello,

We'll need the context of a test project to see what's happening. If I test it in one of the MFC projects included with TeeChart, "Dragging Points", then this syntax works fine:

Code: Select all

int myColor = RGB(255,255,0);
CSeries mySeries = m_ctrlChart.Series(1);

mySeries.SetColor(myColor);
Regards,
Marc Meumann