Legend of TrendViewer - possible to customize?

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
sming
Posts: 2
Joined: Wed Feb 05, 2014 8:15 am
Location: Switzerland

Legend of TrendViewer - possible to customize?

Post 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

stuartm
Posts: 61
Joined: Thu Jun 06, 2013 9:21 am

Re: Legend of TrendViewer - possible to customize?

Post by stuartm »

Yes. Create a screen. Configure that screen to be a pop up. Create a button action to close the screen.
Attachments
popup.png
popup.png (151.36 KiB) Viewed 5241 times

Post Reply