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

Message ListMessage List     Post MessagePost Message

  Drawing built in shape into DrawArea
Posted by Stephan Bielmann on Jul-04-2014 20:41
Hello All,

is there a way to make Chart Director draw a built in shape, for example Chart::TriangleShape, into a DrawArea ? Like with a given size, color, background color and so on ?

Thanks for any hint,

Stephan

  Re: Drawing built in shape into DrawArea
Posted by Peter Kwan on Jul-04-2014 22:57
Hi Stephan,

Yes. You can use CDML to add the shape using as text. If you are using the BaseChart
object, a custom text can be added using BaseChart.addText. If you are using the
DrawArea object directly, you can use DrawArea.text. For example:

d->text("<*img=@Triangle,color=00CC00,width=7,height=10*>", "normal", 8, 50, 50, 0);

See:

http://www.advsofteng.com/doc/cdcpp.htm#cdml.htm

Hope this can help.

Regards
Peter Kwan

  Re: Drawing built in shape into DrawArea
Posted by Stephan Bielmann on Jul-09-2014 22:14
Hello Peter,

thank you again, this is what I was looking for.

Kinde regards, Stephan