Create a function for a trend picture
Here is a basic sample how to create a function for an extended trend picture... 'Create Function for TREND - PICTURE Sub CreateTrendFunction() Dim zPIC As DynPicture Dim zFCT As RtFunction Dim i As Integer Set zPIC = MyWorkspace.ActiveDocument.DynPictures.Item("TREND")
Working with 'OnlineVariables'
OnlineVariables are containers to recognize variable changes. This is the most efficient way to handle variable vlaue changes within VBA or external applications... Dim WithEvents zOLV As OnlineVariable Const strOLV As String = "MyOnlineVariableContainer"
Working with 'DynPicture' objects
Here are two samples, one to create a picture with default elements and the second to enumerate pictures of a project... Sub CreatePicture() Dim zPIC As DynPicture Const PictureName As String = "Alarm-Picture" Const TemplateName As String = "MAIN" 'check
Working with REMAs
The Reaction Matrices are the most sophisticated way to deal with stati. Public Sub zenOn_RemasExample() 'Declarations Dim zRemas As Remas Dim zBinRema As Rema Dim zAnaRema As Rema Dim i As Integer 'Initialization of zRemas Set zRemas = MyWorkspace.ActiveDocument.Remas
Recipe Group Manager (RGM)
Here is an Example howto read out all RecipeGroups, RecipeGroupVariables, Recipes and Values... The Exmaple is made for the Runtime, but it will also work in the Editor when "MyWorkspace.ActiveDocument" is used insted of "thisProject"! VBA Code: Public
VBA Help [BETA] Download
Here is the actual "VBA HELP" as CHM file. :D ;) The Version was built on Thursday the 16th of August and is not completed, but already useful! This is a migrated post! Originally posted on 16.08.2007 by user robertf. Please be aware that information
Create an Element
Here is a sample how to create a textbutton with vba... VBA Code: '########################################################## '## A Procedure to create a new textbutton in a picture. ## '## Several properties will be set and a function linked ## '##########################################################
Working with the 'CEL' objects
The CEL Object represents the "Chronologival Event List" an offers the feature to write user defined Events into the list or react on entries in the list... '########################################################## '### this Code can be used within
Working with the 'Alarm' objects
Every alarm action (receive/clear/acknowledge) executes an event available for VB(A). The object must be defined WithEvents. Dim WithEvents zAlarm As Alarm 'procedure is executed on startup of the zenOn runtime Private Sub Project_Active() 'init the alarm