|
GLG Toolkit, JavaScript Library
Version 4.6
|
Functions | |
| GlgObject | CreateAlarmList () |
| Creates and returns a list of alarms defined in the object. More... | |
| static GlgAlarmHandler | SetAlarmHandler (GlgAlarmHandler alarm_handler) |
| Installs a global alarm handler that will be invoked to process alarms. More... | |
| GlgObject CreateAlarmList | ( | ) |
Creates and returns a list of alarms defined in the object.
Each element of the returned group is a data object that has an alarm attached. The GetElement and GetSize methods of the Intermediate API may be used within the Standard API to handle the returned group object.
If the object is not a viewport, the returned alarm list will include only alarms contained inside the object. For a viewport, the alarm list will contain all alarms defined in the viewport's drawing.
Example
The following code prints information about all alarms defined in the drawing:
|
static |
Installs a global alarm handler that will be invoked to process alarms.
Alarms are generated by the Alarm objects attached to objects in the drawing and activated when the controlled values go outside the ranges specified in the Alarm objects.
| alarm_handler | An alarm handler that will be invoked to process alarm messages generated by the application's drawings. Use CreateGlgAlarmHandler to create an alarm handler. |
See GlgAlarmHandler for more information.