Legend of TrendViewer - possible to customize?
Posted: Wed Feb 05, 2014 8:31 am
Hi Folks
I've got a Screen with a TrendViewer on it and I can show the legend using the code
Question: Is it possible to customize this very small popup window? Especially the Show/Hide Buttons?
Because I think it's not possible, I tried to make my own legend-window.
I can show/hide the curves also with the code
and
But the behavior is not equal as if I show/hide with the buttons on the legend-window. If I disable the curve, the curve is still visible and only new data will not be drawn. If I enable the curve again, the curve starts with drawing new data and there stays a gap between.
If I use and again the curve is re-drawed and the gap dissapears.
The show/hide buttons on the "official" legend let the curves dissapear/appear completely, which is what I need.
Is there any other possibility to show/hide the curves?
Thanks for helping
I've got a Screen with a TrendViewer on it and I can show the legend using the code
Code: Select all
Trendviewer1.ShowLegend(100,100);
Because I think it's not possible, I tried to make my own legend-window.
I can show/hide the curves also with the code
Code: Select all
this.TrendViewer1.Curves[0].IsVisible = true;
Code: Select all
this.TrendViewer1.Curves[0].IsVisible = false;
If I use
Code: Select all
ShowHistory("On")
Code: Select all
ShowHistory("Off")
The show/hide buttons on the "official" legend let the curves dissapear/appear completely, which is what I need.
Is there any other possibility to show/hide the curves?
Thanks for helping