Subscribe() question

Posted by integrasoftware on 29-May-2017 14:42

Hello everyone...

I am trying to use Ultradatachart(16.2) in Openedge V11.2.

I'm trying to format the labels on the chart. For example: instead of showing 12,000,000 must shows 12 M.

To be able to do this I must subscribe to the event "FormatLabel" of the CategoryX axis

C Subscribe Example:


      CategoryX.FormatLabel + = new AxisFormatLabelHandler (Eventthatrunstheformat);

C Event:

        string Eventthatrunstheformat(AxisLabelInfo info)
        {
            decimal value = (decimal)info.Value;
            return Utilities.GetDisplayValueInMillions(value, 0, MillionsSuffix);
        }        

I never subscribe to an event that returns a value (In this case String).

Can someone guide me on how to subscribe?

All Replies

Posted by Mike Fechner on 29-May-2017 14:49

The ABL does not support handling .NET events that are not derived from the System.EventHandler delegate.

www.infragistics.com/.../infragistics4.win.datavisualization.ultradatachart.v16.2~infragistics.win.datavisualization.axisformatlabelhandler

So you'll have to implement that bit in C#, bundle the functioanlity in a custom .NET Assembly and use that from within the ABL in connection to the UltraDataChart class.

This thread is closed