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

Message ListMessage List     Post MessagePost Message

  Chart Background for Glass and Soft Lighting
Posted by JC on Dec-04-2008 06:22
I have been trying to get glass and lighting effect work on the chart background but i am unable to see the difference if I use the default values for either one.

c.setPlotArea( 100,100,100,100, 'green', -1, c.glassEffect(c.NormalGlare, c.top,5))
c.setPlotArea( 100,100,100,100, 'green', -1, c.softLighting(c.top,4))


am i doing something incorrect?

  Re: Chart Background for Glass and Soft Lighting
Posted by Peter Kwan on Dec-04-2008 13:46
Hi JC,

Both glassEffect and softLighting can only be used in objects that support a "raised effect". For examples, you may use it in the raisedEffect argument in Box.setBackground or Layer.setBorderColor.

As setPlotArea does not have a raisedEffect argument, it does not support glassEffect or softLighting.

If you want, you want put a TextBox behind the plot area, and apply glassEffect or softLighting to it, like (in VB.NET):


Dim b As ChartDirector.TextBox = c.addText(100, 100, "")
b.setSize(100, 100)
b.setBackground(&H00ff00, Chart.Transparent, Chart.softLighting(Chart.top, 4))
b.setZOrder(Chart.PlotAreaZ)

c.setPlotArea(100, 100, 100, 100)

Hope this can help.

Regards
Peter Kwan