Object EVENTS

Previous chapterNext chapter Show allShow all    Hide allHide all

In 90% of working with objects you will use properties and methods, but there is a third kind of attributes objects can have: The events. Some objects of the control system object hierarchy can react on events. Events, as the name suggest, happen on their own while working with zenon. For example: Whenever a picture is opened, an open event is triggered in the according picture object. As a programmer you can add commands to the event procedure (procedure to be executed, when the event happens), which define, what should happen in this case. One example for this is changing a variable. You can create an event, which reacts on value changes of a variable.