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

Message ListMessage List     Post MessagePost Message

  get rid of border around a "one colume" LegendBox
Posted by Marcus on Oct-09-2020 20:17
Hi

I have a LegendBox without border and anything works fine.

**BUT** when I do a
m_p_legend_box->setCols(1);
Then there is a black border around the LegendBox. And I can not get rid of it.

What I'm doing in detail:

m_p_legend_box = in_p_chart->addLegend(...);
m_p_legend_box->setBackground(Chart::Transparent);
m_p_legend_box->setTruncate(leg_width, 1);
m_p_legend_box->setAlignment(Chart::Alignment::Center);
m_p_legend_box->setMaxWidth(leg_width);

m_p_legend_box->setKeyBorder(Chart::Transparent);

m_p_legend_box->setCols(1);  // <======================= here comes the border

m_p_legend_box = in_p_chart->layoutLegend();
m_p_legend_box->setPos(LEGEND_BOX_MARGIN, top_y);


Thanks, regards

Marcus

  Re: get rid of border around a "one colume" LegendBox
Posted by Peter Kwan on Oct-09-2020 22:01
Hi Marcus,

Instead of :

m_p_legend_box->setBackground(Chart::Transparent);

please try:

m_p_legend_box->setBackground(Chart::Transparent, Chart::Transparent);

Regards
Peter Kwan

  Re: get rid of border around a "one colume" LegendBox
Posted by Marcus on Oct-13-2020 15:06
Thank you, this works.

Regards

Marcus