AlarmWorX64 Viewer – Using Custom
Events
July 2012
Description: Guide to use custom events in AlarmWorX64 Viewer.
OS Requirement: Windows Server 2003 x64, Server 2008 x64, Server 2008 R2 x64, Windows Vista x64, Windows 7 x64
General Requirement: Installation of GENESIS64 and a basic understanding of GraphWorX64 Scripting.
{
MessageBox.Show("Custom event has been fired!"); }
Introduction
The AlarmWorX64 Viewer provides a comprehensive set of features, which are generally capable of covering all of your alarms visualization needs. If there is any advanced operation you would like to perform that is not directly available as a native feature, then you can take advantage of the so-called “Custom Events” which may be fired from the AlarmWorX64 Viewer to let you perform any custom action you would like.
In this Application Note we will see how easy and fast is to enable and configure such option.
We can now test our example therefore we switch the display to runtime mode. The custom event can be fired from a few different places: from the ribbon bar, from the AlarmWorX64 Viewer Runtime Toolbar or from its context menu.
Enabling Custom Events
To enable Custom Events, select your AlarmWorX64 Viewer control inside GraphWorX64 and open the Property Grid. Look for the property called AllowCustomEvents inside the Common group. By default it is set to False, change the value to True, to enable it.
We still need to create the handler function which will be executed when the custom event is fired. To create it, click on the Events button from the AlarmWorX64 Viewer Property Grid.
Figure 2 – Firing the custom event
Picking anyone of these 3 commands will fire our handler function.
Figure 1 – The Events button
Figure 3 – The message we show from the event handler
From the events list which will be shown, locate the CustomEvent event in the Misc group. Double-click on it, the Script Editor automatically creates a handler function for this event, with the appropriate method signature.
The Script Editor will show up. You can now fill the generated script function with your own application-specific code. In our example we just want to show a message to inform the user that the event has been correctly fired. Our function will look like this:
function AlarmWorX64Viewer1_CustomEvent(sender : System.Object, e : System.EventArgs)
Copyright 2012 ICONICS, Inc.
Page 1 of 1
Now, you only need to change the content of the handler with your own logic. Some possible operations you may perform from there include (but are not limited to):
Load another display
Show/hide some content in the display Write to some process point Update a database
Launch an external application
See Scripting Help files documentation, other Application notes or the GenDemo Learning Center for more details about






scripting in GraphWorX64.
AlarmWorX64 Viewer - Using Custom Events
TrendWorX64 Viewer - Getting Started_互联网_IT/计算机_专业资料。TrendWorX64 Viewer - Getting Started July 2012 Description: Guide to using TrendWorX64 Vie...
AlarmWorX64 Viewer - Usi... 暂无评价 1页 免费 AlarmWorX64 Multimedia -.....AlarmWorX64 Multimedia – Callout Using TAPI Protocol July 2012 Figure 2 -...
Page 1 of 1 AlarmWorX64 Multimedia - Using the Video Agent 分享到: X 分享到: 使用一键分享,轻松赚取财富值, 了解详情 嵌入播放器: 普通尺寸(450*...
Page 1 of 1 AlarmWorX64 Multimedia - Paging Using SNPP Services 分享到: X 分享到: 使用一键分享,轻松赚取财富值, 了解详情 嵌入播放器: 普通尺寸(...
AlarmWorX64 Multimedia agent scheduling provides the following: ? Personal and...and yearly events o Additional included and excluded events o Calendar Preview...
1 1.2 Event Selection EyeLink events can be ...(custom-defined interest period, or the default ...By using a set of predefined viewer commands, ...
This could include information for the type of modem you are using. Introduction: AlarmWorX64 Multimedia allows for dial-out action when an alarm occurs ...
When using this type of media, it may be necessary to send the ...screen, and use the custom setting to install the agents that you need. ...
The server asks user to enter his ID and authenticates it using the Alias table. If authenticated, the Multimedia Server plays the Introduction Phrase of...
AlarmWorX64 Multimedia - Best Practices AlarmWorX64 Multimedia Best Practices ...If you are using the Call-In Telephony agent, try to configure your Call...
热门文档