
Usage
The ScreenItem object can be used to access the properties of graphic objects within a picture
according to certain events.
The "ScreenItem" object can be used for the following, for example:
● To activate or deactivate the visualization of an object ("Visible" property).
● To release or block the operation of an object ("Enabled" property).
● Change the width and height of an object ("Height" and "Width" properties).
● Change the position of an object ("Top" and "Left" properties).
● Read and define a layer in which a graphic object is located ("Layer" property).
● Read or define the name of a graphic object ("ObjectName" property).
● Define a reference to the superordinate picture ("Parent" property).
Using the "Activate" method, the focus is set on the respective ScreenItem object. If the focus
cannot be set because the object is non-operable, for example, an error is generated. Using
error processing (On Error Resume Next), the error may be evaluated.
Possible features of ScreenItem
The "ScreenItem" object can contain the following object types:
Standard
objects
Smart objects Windows
objects
Tube objects Controls Others
Ellipse 3D bar Button Double T-
piece
Siemens HMI
Symbol Library
Customized
object
Ellipse arc Application
window
Check box Polygon
tube
WinCC
AlarmControl
Group
Ellipse
segment
Bar Radio box Tube bend WinCC digital/
analog clock
control
Circle Picture
window
Round button T-piece WinCC
FunctionTrendCon
trol
Circular arc Control Slider WinCC gauge
control
Pie segment I/O field WinCC
OnlineTrendContr
ol
Line Faceplate
Instance
WinCC
OnlineTableContr
ol
Polygon Graphic
object
WinCC push
button control
Polyline Combo box WinCC
RulerControl
Rectangle List box WinCC slider
control
VBS for Creating Procedures and Actions
1.14 VBS Reference
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
135