Page 1 of 1

Legend of TrendViewer - possible to customize?

Posted: Wed Feb 05, 2014 8:31 am
by sming
Hi Folks

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);
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

Code: Select all

this.TrendViewer1.Curves[0].IsVisible = true;
and

Code: Select all

this.TrendViewer1.Curves[0].IsVisible = false;
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

Code: Select all

ShowHistory("On")
and again

Code: Select all

ShowHistory("Off")
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

Re: Legend of TrendViewer - possible to customize?

Posted: Thu Apr 24, 2014 1:46 pm
by stuartm
Yes. Create a screen. Configure that screen to be a pop up. Create a button action to close the screen.