Page 1 of 1
Custom AlarmViewer
Posted: Fri Mar 16, 2012 10:02 am
by antoineA
Hi everybody,
Is it possible to create buttons (for example "Up" and "Down") in AlarmViewer which select displayed alarms?. I know we can select them by touching the screen, but I find it's too small and not very practical.
I have looking for in AlarmViewer methods but my knowledges in C# are limited...
Thanks a lot
antoineA.
Re: Custom AlarmViewer
Posted: Fri Mar 16, 2012 4:35 pm
by Ron L.
This is on my wish list, but currently there is not a way to do this with the Alarm Viewer object.
Re: Custom AlarmViewer
Posted: Mon Mar 19, 2012 10:30 am
by kim
Hi.
I continue this post with a related question:
Is it possible to add alarm buttons for Ack, Info etc but not using the buttons in the AlarmViewer ?
I like to have a Clear all -button elsewere than in the AlarmViewer window. I assume it can be done with a script but I cannot figure out how.
Thank you.
Re: Custom AlarmViewer
Posted: Mon Mar 19, 2012 10:45 am
by Ron L.
Yes, some of that can be done in script by referencing the AlarmViewer instance on a screen.
Code: Select all
void Button1_Click(System.Object sender, System.EventArgs e)
{
//AlarmViewer1.AcknowledgeSelected();
AlarmViewer1.ShowInfo();
}
Re: Custom AlarmViewer
Posted: Mon Mar 19, 2012 10:53 am
by antoineA
Thank you Ron for your reply.
Is this functionality will be available with the next version of Ix Developer?
Best regards,
antoineA.
Re: Custom AlarmViewer
Posted: Mon Mar 19, 2012 11:11 am
by Ron L.
It's available in the current release of iX Developer 1.31.93.
Re: Custom AlarmViewer
Posted: Tue Mar 20, 2012 1:46 am
by antoineA
Ron L. wrote:It's available in the current release of iX Developer 1.31.93.
The "up" and "down" buttons???
Re: Custom AlarmViewer
Posted: Tue Mar 20, 2012 6:52 am
by antoineA
hi Ron,
I have another question concerning Alarm features. Is there a way to define the position of Red light apparition when an alarm is activated?? By default, it appears on the upper left corner of the screen and I would like to define it on the center of the screen.
Best regards,
antoineA.
Re: Custom AlarmViewer
Posted: Tue Mar 20, 2012 7:22 am
by kim
Thanks Ron for the answer, it wasn't so hard
But how to make script if I like to have the button on another screen than the AlarmViewer itself?
I like to have the .ClearNormalAlarms() on a separate screen.
antoineA: I disabled the iX alarm indicator and made my own which is visible if an alarm is active. Then I can make its look and location as I like.
Re: Custom AlarmViewer
Posted: Tue Mar 20, 2012 9:29 am
by mark.monroe
Hi Kim,
To clear the alarms using a button from a different screen you need to get a hold of the AlarmServer object. You can then call your functions on that and all the AlarmViewers in the project will get updated.
Code: Select all
void Button1_Click(System.Object sender, System.EventArgs e)
{
//Globals.AlarmServer.Acknowledge();
Globals.AlarmServer.ClearNormalAlarms();
}