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

Message ListMessage List     Post MessagePost Message

  setBackground2 and ttftext2
Posted by Dave on Nov-16-2011 09:28
Hi Peter,  I am adding a background image to a plot area of a chart with setBackground2 and then later I am adding text with ttftext2.

The problem is that the text is being written behind the background image.  I tried changing the order of operation but same issue.  I have search the documentation and the forums but can't seem to get a clue.

I am using version 2.5 (Yes I should upgrade soon :)

Thanks for any hints
Dave

  Re: setBackground2 and ttftext2
Posted by Peter Kwan on Nov-17-2011 02:45
Hi Dave,

From your description, your original chart is an XYChart (as it has a plot area), and your code somehow obtains the DrawArea object, so that it can use ttftext2.

If the DrawArea is obtained using BaseChart.getDrawArea, it is at the background of the chart, and is behind the plot area. If the DrawArea is obtained using BaseChart.makeChart3, it should be in front of everything else in the chart.

If you are not already using BaseChart.makeChart3, switch to this method should solve the problem.

Hope this can help.

Regards
Peter Kwan