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

Message ListMessage List     Post MessagePost Message

  formatValue Arialbd.ttf in VB6
Posted by Helmut on Dec-30-2017 01:19
Hi,

is there a possibility to add a FontStyle (bold) in "formatValue"?
for example, Arialbd.ttf only once a day.


Alttag = Date
    'Add
    For i = LBound(viewPortTimeStamps) To UBound(viewPortTimeStamps)

        Diff = DateDiff("d", timeStamps(i), Alttag)
        If Diff <> 0 Then

           Call c.xAxis().addLabel(i, c.formatValue(timeStamps(i), "<*bgcolor=FFCCC0*> {value|dd.mm.yyyy} {value|hh:nn:ss}"))
           '................
           Alttag = timeStamps(i)
        Else
           Call c.xAxis().addLabel(i, c.formatValue(timeStamps(i), "{value|hh:nn:ss}"))
        End If

    Next

Regards Helmut

  Re: formatValue Arialbd.ttf in VB6
Posted by Peter Kwan on Dec-31-2017 23:12
Hi Helmut,

Yes, you can specify the font style using CDML. See:

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

For example:

<*font=arialbd.ttf,bgcolor=FFCCC0*>{value|dd.mm.yyyy} {value|hh:nn:ss}

Hope this can help.

Regards
Peter Kwan