ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  ChartDirector 7 seems break auto color
Posted by David on Jun-22-2022 17:54
Hello,

the following code used to work in version 6.3 to display squares of auto color (Chart::DataColor + 1, 2, 3...etc). But it appears stop working in version 7. The squares are not shown.

ostringstream legendText;

legendText << "<*block*><*img=@square,width=8,color=" << std::hex << Chart::DataColor << "*> test1 <*img=@square,width=8,color=" << std::hex << (Chart::DataColor + 1) << "*> test2<*/*>";

t = d->text(legendText.str().c_str(), "arial.ttf", 8);

  Re: ChartDirector 7 seems break auto color
Posted by Peter Kwan on Jun-22-2022 23:35
Hi David,

I confirm this is a bug in ChartDirector. We will come up with a patch shortly. As you mentioned about the ChartViewer.cpp in your other message, I assume you are using the Windows edition of ChartDirector.

Regards
Peter Kwan

  Re: ChartDirector 7 seems break auto color
Posted by David on Jun-23-2022 17:37
Yes, that's right. Thanks!

  Re: ChartDirector 7 seems break auto color
Posted by Peter Kwan on Jun-25-2022 01:14
The patch that fixes the auto color problem is posted at:

https://www.chartdir.com/forum/download_thread.php?site=chartdir&bn=chartdir_support&thread=1655894852#N1656090686