TeeChart for ActiveX, COM and ASP
-
realife
- Newbie
![Newbie Newbie](./images/ranks/1star.gif)
- Posts: 4
- Joined: Thu Jul 27, 2023 12:00 am
Post
by realife » Sun Jul 30, 2023 10:50 am
----------
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
-
Marc
- Site Admin
![Site Admin Site Admin](./images/ranks/6stars.gif)
- Posts: 1217
- Joined: Thu Oct 16, 2003 4:00 am
- Location: Girona
-
Contact:
Post
by Marc » Wed Aug 02, 2023 11:56 am
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
Steema Support