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

Message ListMessage List     Post MessagePost Message

  Can I specify a font effect (underline or strikeout)?
Posted by Marlena on Mar-08-2013 10:21
Hello,

I am using the addText method to mark peaks on traces in a plot. Some peaks are "included", some are "excluded" but all are visible and marked.

I would like to distinguish between included and excluded peaks by changing the effect of font used to mark them. I am already using color to distinguish the various traces.

I had hoped to use an underline or strikeout effect for the excluded peaks. But I don't see a way to do this in ChartDirector.

Yes, I could use font size but the problem is that I am using modified ZoomScroll code and it is possible to zoom in and see only one marker. When that happens, there is nothing to compare the marker to so its inclusion state is not obvious.

If it is not possible to set effects, please let me know.

Thanks.

  Re: Can I specify a font effect (underline or strikeout)?
Posted by Peter Kwan on Mar-09-2013 02:11
Hi Marlena,

The underline is supported using CDML. For example, the text "<*underline=2*>My Text" will be underlined with a line widht of 2 pixels. See:

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

For "strikeout", there is no built in "strikeout" feature. However, as you are using BaseChart.addText to add the text, you can always use BaseChart.addLine to add an additional line over the text to create the "strikeout" effect. The TextBox object returned from BaseChart.addText can be used to determine the height and width of the text, so that you can position the line appropriately.

Hope this can help.

Regards
Peter Kwan