Remarks | Properties | Methods | DynProperties | Samples |
ED
|
avaliable
|
RT
|
avaliable
|
The template contains general information on the outer appearance of the pictures. Each picture is linked to a template. The VBA object for the templates contains the most important information, e.g. name and position on the screen.
BackgroundColor | BackgroundImage | BackgroundImageStyle |
BorderStyle | Bottom | Left |
Name | Parent | RelativePos |
Right | ShowForeground | ShowMinimize |
ShowSysMenu | ShowTitle | Style |
Top |
CheckIn | CheckOut | Copy |
DynPropertiesEnum[GET] | DynProperties[GET] | DynProperties[PUT] |
Export | Get | Import |
IsCheckedOut | IsDifferent | IsLocked |
Save | UndoCheckOut |
Name | Type | Description |
---|---|---|
AltPixelHorz | Long |
Horizontal movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the alternative reference point horizontally. Default: 2
|
AltPixelVert | Long |
Vertical movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the alternative reference point vertically. Default: 2
|
AltPosHorz | Long |
Horizontal Only active if you select relative to the element at Positioning. Select the desired alternative reference point at the element from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between left or right. Default: Left
|
AltPosVert | Long |
Vertical Only active if you select relative to the element at Positioning. Select the desired alternative reference point at the element from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between top or bottom. Default: top
|
AltRefHorz | Long |
Alternative horizontal Only active if you select relative to the element at Positioning. Select the desired alternative reference point for the template from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between left, right or centered. Default: Left
|
AltRefVert | Long |
Alternative vertical Only active if you select relative to the element at Positioning. Select the desired alternative reference point for the template from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between top, bottom or centered. Default: top
|
BackgroundColor | ZT_COLOR |
Background color Background color as default for all pictures based on this template. Read more in the online manual
|
BackgroundPicture | ZT_FILE |
Graphics file Selection of the background picture as default
for all pictures based on this template. Read more in the online manual
|
BackgroundPictureStyle | Long |
Alignment Only available,
after a picture has been selected: Read more in the online manual
|
BorderStyle | Long |
Border type Border style of the picture. Read more in the online manual
|
CloseOnClickOutside | Boolean |
Close after losing focus Controls the behavior of the template when losing focus. If you click next to the template, it will automatically close. Active: The template is closed if you left-click next to it. Default: inactive
|
PixelHorz | Long |
Horizontal movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the reference point horizontally. Default: 2
|
PixelVert | Long |
Vertical movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the reference point vertically. Default: 2
|
PosBottom | Long |
Bottom [pixels] Y coordinate of the bottom right corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosHorz | Long |
Horizontal Only active if you select relative to the element at Positioning. Select the desired reference point at the element from the dropdown list. When the template is loaded, this reference point will be considered. Choose between left or right. Default: Left
|
PosLeft | Long |
Left [pixels] X coordinate of the top left corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosRight | Long |
Right [pixels] X coordinate of the bottom right corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosTop | Long |
Top [pixels] Y coordinate of the top left corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosType | Long |
Positioning Determines the position of the template (of the pictures based on it) in the Runtime. This feature is especially useful for keyboard windows and popup windows: You can place pictures at the exact location of the mouse pointer or the element, from which the picture is loaded. You can choose from the following locations for placing the template during Runtime: use absolute position: Positions the template at the coordinates defined in Position. relative to the
mouse pointer: The picture is placed in relation to the
reference point of the template. The reference point of the
template is positioned at the current location of the mouse
pointer. You can define the reference point in Reference point of
template. The reference point is marked as a red dot in
the template editor. Example: If the
reference point is at the top left side, the template will be
loaded to the bottom right side of the reference point. relative to the
element: Positions the reference point of the template
relative to the element, from which the picture switch was
initiated (e.g. a button or a combined element). Here you can
define both the reference point of the template (in Reference point of
template) and the reference point of the element (in
Reference point of
element) including the distances to the element. The
reference point of the template will always be placed on the
calculated reference point of the element in the Runtime. Default: use absolute position
|
PosVert | Long |
Vertical Only active if you select relative to the element at Positioning. Select the desired reference point at the element from the dropdown list. When the template is loaded, this reference point will be considered. Choose between top or bottom. Default: top
|
RefHorz | Long |
Horizontal Only active if you select relative to element or relative to mouse pointer at Positioning. Select the desired reference point for the template from the dropdown list. Choose between left, right or centered. Default: Left
|
RefVert | Long |
Vertical Only active if you select relative to element or relative to mouse pointer at Positioning. Select the desired reference point for the template from the dropdown list. Choose between top, bottom or centered. Default: top
|
ShowForeground | Boolean |
Always in the foreground Active: No
other picture overlaps this area in online operation. Pictures in
the background can still be operated. Read more in the online manual
|
ShowMinimize | Boolean |
Min/Max Buttons Only available, if
the title is active: Read more in the online manual
|
ShowSysMenu | Boolean |
System menu Only available, if
the title is active: Read more in the online manual
|
ShowTitle | Boolean |
Title Only available, if
a frame is active for the template: Read more in the online manual
|
Style | Long | Window style |
TemplateName | String |
Name Unique name of the template. Read more in the online manual
|
Name | Type | Description |
---|---|---|
AltPixelHorz | Long |
Horizontal movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the alternative reference point horizontally. Default: 2
|
AltPixelVert | Long |
Vertical movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the alternative reference point vertically. Default: 2
|
AltPosHorz | Long |
Horizontal Only active if you select relative to the element at Positioning. Select the desired alternative reference point at the element from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between left or right. Default: Left
|
AltPosVert | Long |
Vertical Only active if you select relative to the element at Positioning. Select the desired alternative reference point at the element from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between top or bottom. Default: top
|
AltRefHorz | Long |
Alternative horizontal Only active if you select relative to the element at Positioning. Select the desired alternative reference point for the template from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between left, right or centered. Default: Left
|
AltRefVert | Long |
Alternative vertical Only active if you select relative to the element at Positioning. Select the desired alternative reference point for the template from the dropdown list. The alternative reference point will be used if it is not possible to position the template at the preferred reference point when loading the template. Choose between top, bottom or centered. Default: top
|
BackgroundColor | ZT_COLOR |
Background color Background color as default for all pictures based on this template. Read more in the online manual
|
BackgroundPicture | ZT_FILE |
Graphics file Selection of the background picture as default
for all pictures based on this template. Read more in the online manual
|
BackgroundPictureStyle | Long |
Alignment Only available,
after a picture has been selected: Read more in the online manual
|
BorderStyle | Long |
Border type Border style of the picture. Read more in the online manual
|
CloseOnClickOutside | Boolean |
Close after losing focus Controls the behavior of the template when losing focus. If you click next to the template, it will automatically close. Active: The template is closed if you left-click next to it. Default: inactive
|
PixelHorz | Long |
Horizontal movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the reference point horizontally. Default: 2
|
PixelVert | Long |
Vertical movement [pixel] Only active if you select relative to the element at Positioning. By entering a positive or negative numerical value, you can move the reference point vertically. Default: 2
|
PosBottom | Long |
Bottom [pixels] Y coordinate of the bottom right corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosHorz | Long |
Horizontal Only active if you select relative to the element at Positioning. Select the desired reference point at the element from the dropdown list. When the template is loaded, this reference point will be considered. Choose between left or right. Default: Left
|
PosLeft | Long |
Left [pixels] X coordinate of the top left corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosRight | Long |
Right [pixels] X coordinate of the bottom right corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosTop | Long |
Top [pixels] Y coordinate of the top left corner of the
template in pixels (referring to the current screen
resolution). Read more in the online manual
|
PosType | Long |
Positioning Determines the position of the template (of the pictures based on it) in the Runtime. This feature is especially useful for keyboard windows and popup windows: You can place pictures at the exact location of the mouse pointer or the element, from which the picture is loaded. You can choose from the following locations for placing the template during Runtime: use absolute position: Positions the template at the coordinates defined in Position. relative to the
mouse pointer: The picture is placed in relation to the
reference point of the template. The reference point of the
template is positioned at the current location of the mouse
pointer. You can define the reference point in Reference point of
template. The reference point is marked as a red dot in
the template editor. Example: If the
reference point is at the top left side, the template will be
loaded to the bottom right side of the reference point. relative to the
element: Positions the reference point of the template
relative to the element, from which the picture switch was
initiated (e.g. a button or a combined element). Here you can
define both the reference point of the template (in Reference point of
template) and the reference point of the element (in
Reference point of
element) including the distances to the element. The
reference point of the template will always be placed on the
calculated reference point of the element in the Runtime. Default: use absolute position
|
PosVert | Long |
Vertical Only active if you select relative to the element at Positioning. Select the desired reference point at the element from the dropdown list. When the template is loaded, this reference point will be considered. Choose between top or bottom. Default: top
|
RefHorz | Long |
Horizontal Only active if you select relative to element or relative to mouse pointer at Positioning. Select the desired reference point for the template from the dropdown list. Choose between left, right or centered. Default: Left
|
RefVert | Long |
Vertical Only active if you select relative to element or relative to mouse pointer at Positioning. Select the desired reference point for the template from the dropdown list. Choose between top, bottom or centered. Default: top
|
ShowForeground | Boolean |
Always in the foreground Active: No
other picture overlaps this area in online operation. Pictures in
the background can still be operated. Read more in the online manual
|
ShowMinimize | Boolean |
Min/Max Buttons Only available, if
the title is active: Read more in the online manual
|
ShowSysMenu | Boolean |
System menu Only available, if
the title is active: Read more in the online manual
|
ShowTitle | Boolean |
Title Only available, if
a frame is active for the template: Read more in the online manual
|
StandardPosition | Boolean |
Use standard position active: Places the template for the alarm status line on the top border of the screen. Default: active
|
Style | Long | Window style |
TemplateName | String |
Name Unique name of the template. Read more in the online manual
|
'>thisProject< instead of >Myworkspace.ActiveDocument< when using the code at Runtime '!Editor and Runtime!" Public Sub TemplateDetails() Dim zTMP As Template Dim strTemplate As String Set zTMP = MyWorkspace.ActiveDocument.Templates.Item("tmp_MAIN") strTemplate = zTMP.Name & vbCrLf strTemplate = strTemplate & "ShowTitle: " & zTMP.ShowTitle & vbCrLf strTemplate = strTemplate & "ShowSysMenu: " & zTMP.ShowSysMenu & vbCrLf strTemplate = strTemplate & "ShowForeground: " & zTMP.ShowForeground MsgBox strTemplate End Sub Sub zenOn_Template() 'Declarations Dim zWork As Project Dim zTemplate As Template Dim zTemplateCopy As Template 'Initializiation of zWork Set zWork = MyWorkspace.ActiveDocument 'Initialization of zTemplate by creating a new template Set zTemplate = zWork.templates.Create("zenOn_Template", False) 'Set the position of zTemplate 'Align at the upper left corner 'Height = 1024 'Width = 100 zTemplate.Top = 0 zTemplate.Bottom = 1024 zTemplate.Left = 0 zTemplate.Right = 100 'Set style settings 'Background color is 0xCCCCCC zTemplate.BackgroundColor = &HCCCCCC 'Border style is "Bold Frame" zTemplate.BorderStyle = 1 'Enable Windows title bar zTemplate.ShowTitle = True 'Enable Windows system menu zTemplate.ShowSysMenu = True 'Enable Windows minimize/maximize button in titlebar zTemplate.ShowMinimize = True 'Initialization of zTemplateCopy by creating a new template Set zTemplateCopy = zWork.templates.Create("zenOn_TemplateCopy", True) 'Copy the settings from zTemplate to zTemplateCopy zTemplateCopy.Copy zTemplate 'Delete both templates from the collection zWork.templates.Delete (zTemplate.name) zWork.templates.Delete (zTemplateCopy.name) End Sub