TrendViewer change Curve-Color?

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
philip.joebstl
Posts: 26
Joined: Tue Oct 09, 2012 12:56 am

TrendViewer change Curve-Color?

Post by philip.joebstl »

Hello,

is it possible to change the color of a trend curve during runtime?

Also I'm wondering how the TrendViewer object works - I first thought about GDI+, but then I read that it is not supported on the CF-Framework?

Thank you for your support!
Best regards,
Philip Joebstl

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: TrendViewer change Curve-Color?

Post by mark.monroe »

There is no way to change the color of a curve. You can make a curve visible/invisible by setting the IsVisible property of the curve object.

this.TrendViewer1.Curves[0].IsVisible = false;

You could try creating multiple curves that are attached to the same tag and then show/hide the curves depending on what color you want to show.

I do not know how they built the TrendViewer object.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply