Product: | Elvis |
Version: | all |
Booth: | 2001-11-19 |
Summary
Request: I would like to trigger an action on the local operator station when a control element is actuated. In the example, a beep should sound when a certain control element is actuated.
Solution: Insert event processing for the control and write “Beep” (a total of 7 mouse clicks and edit the text “Beep”). There is no download for it!
Details
1st click: Right-click on the image background to open the page’s context menu.
2nd click: Events… choose
3. + 4th click: Select a control element from the list of control elements on the left (this shows whether the elements have meaningful names – maybe we will do something else here). Note: The first entry is always “Form”, which is event processing for the whole page. In addition, you will only see the names of the controls that are on the page!
5. + 6th click: Select “Click” from the list on the right. The small program for the treatment of the “click” is created automatically:
//CODE:vb:Sub <Name des Kontrollelementes>_Click()
End Sub//CODE
Edit “Beep” in the line before “End Sub”:
//CODE:vb:Sub <Name des Kontrollelementes>_Click()
Beep
End Sub//CODE
7. Click: Close the dialog box.