Remarks | Properties | Methods | Events | DynProperties | Samples |
ED
|
avaliable
|
RT
|
avaliable
|
This collection contains the defined pictures. The single
pictures can contain different dynamic elements. Each picture is
linked to a template, that contains general information on the
outer appearance.
Pictures always come from the current project
Close | Draw | Open |
Timer |
Name | Type | Description | ||
---|---|---|---|---|
AutoKBLayout | Boolean |
Automatic keyboard layout You cannot enter alternative button labels for the buttons of a picture of the type Keyboard. The original labels of the keyboard layout of the operating system will be used.
|
||
BackgroundColor | ZT_COLOR |
Background color Background color of the picture. Read more in the online manual
|
||
BackgroundPic | ZT_FILE |
Graphics file Selection of the background picture. Read more in the online manual
|
||
BackgroundPicStyle | Long |
Alignment Only available,
after a picture has been selected: Read more in the online manual
|
||
BorderStyle | Long |
Border style Only available, if
a frame is selected in the definition of the template: Read more in the online manual
|
||
EndFunction | ZT_FUNCTION |
End function Function, that should be executed automatically
when closing the picture in the Runtime. Read more in the online manual
|
||
EndFunctionID | Long | With this property you have the opportunity to get/set the "end function" of a picture via the unique function ID. | ||
Height | Long |
Height [pixels] Only available, if
the size of the picture is not taken from the template: Read more in the online manual
|
||
Modal | Boolean |
Modal dialog Active: As
long as this picture is open in the Runtime, no other picture
beside it can be operated (e.g. for a login picture). Other
pictures that were opened out of this picture can be operated. Read more in the online manual
|
||
PicActivVar | ZT_VARIABLE_DYN |
Picture active variable The bit variable linked here is set to 1, when
the picture is opened; it is set back to 0, when the picture is
closed. Read more in the online manual
|
||
ShowInCE | Boolean |
Visible under CE Active: The
picture is also displayed under Windows CE. Read more in the online manual
|
||
ShowTitle | Boolean |
Display title Only available, if
a frame is selected for the picture: Read more in the online manual
|
||
SizeFromTemplate | Boolean |
Size from template Active: The
size and the position of the picture is defined by the linked
template. Read more in the online manual
|
||
StartFunction | ZT_FUNCTION |
Start function Function, that should be executed automatically
when opening the picture in the Runtime. Read more in the online manual
|
||
StartFunctionID | Long | With this property you have the opportunity to get/set the "end function" of a picture via the unique function ID. | ||
Template | String |
Template Changes to the assigned template without converting the picture elements to the new picture size (stretching or shrinking). Read more in the online manual
|
||
Title | String |
Name Unique name of the picture. Read more in the online manual
|
||
Type | Long |
Picture type Standard: picture type for creating process
pictures. All vector and dynamic elements can be used. Default: Standard
|
||
Width | Long |
Width [pixels] Only available, if
the size of the picture is not taken from the template: Read more in the online manual
|
'############################################## '## VBA Code in the Module "ModuleElement" ## '## ---------------------------------------- ## '## LeftClickUp - Event has to be created in ## '## the Editor with the Name "PopUp"... ## '## (Scripting - VBA Makros - ModuleElement) ## '############################################## 'event for clicking on a element Public Sub LeftClickUp_PopUp(obElem As Element) 'save the position information of the element to public 'member variables in the thisProject Classmodule... thisProject.lLeft = obElem.Left thisProject.lTop = obElem.Top 'execute different functions depending to the element name... 'Example for FuntionName: POPUP_Valve001 '>> Valve001 ist the Objectname of the Element! thisProject.RtFunctions.Item("POPUP_" & obElem.Name).Start End Sub '############################################### '## VBA Code in the ClassModule "thisProject" ## '## ----------------------------------------- ## '## When the POPUP Picture opens, the Open - ## '## Event is executed and the new positions ## '## will be set with the Move - Method ## '############################################### 'declaration of the position members... Public lLeft As Long Public lTop As Long 'declaring the DynPicture Object for the OPEN event... Dim WithEvents dynPicPOPUP As DynPicture 'on project startup... Private Sub Project_Active() 'setting the Dynpicture object to the "POPUP" Picture... Set dynPicPOPUP = thisProject.DynPictures.Item("POPUP") 'check if there was a problem an initializing the DynPicture Object... If dynPicPOPUP Is Nothing Then MsgBox "moving the picture is not possible..." End If End Sub 'when the picture opens... Private Sub dynPicPOPUP_Open() 'moving the picture... dynPicPOPUP.Move lLeft, lTop, dynPicPOPUP.Width, dynPicPOPUP.Height End Sub 'on project exit... Private Sub Project_Inactive() If dynPicPOPUP Is Nothing Then Exit Sub 'release the object... Set dynPicPOPUP = Nothing End Sub