MdiElement

 

Remarks Properties Methods DynProperties Samples

ED
avaliable
RT
avaliable

Remarks:Top

The availibility and functionality of MDI elements, also called control elements within zenOn, depend on the corresponding picture type.
This collection returns the default settings of the MDI elements.

Properties:Top

BackColor Caption ForeColor
Height ID IsDefault
Left Parent Top
Type Width  

Methods:Top

DynPropertiesEnum[GET] DynProperties[GET] DynProperties[PUT]

DynProperties:Top

Name Type Description
BackColor Long
Default Boolean
Height Long
ID Long
Info Long
Left Long
MenuID Long
Style Long
StyleMask Long
Text String The dialog for the definition of the formula for the Mathematics variable is opened.
TextColor Long
Top Long
Type Long
Width Long Name of the inserted file.

Samples:Top

Sub zenOn_MdiElements()
	'Declarations
	Dim zPIC As DynPicture
	Dim zMDIs As MdiElements
	Dim i As Integer

	'Initialize zPIC with the ALARM picture
	Set zPIC = MyWorkspace.ActiveDocument.DynPictures.Item("ALARM")
	'Initialize zMDIs with the available MDI elements for the ALARM picture
	Set zMDIs = zPIC.MdiElements

	'For every MDI element in the ALARM picture...
	For i = 0 To zMDIs.Count - 1
		'... output the details
		With zMDIs.Item(i)
			Debug.Print "Caption: " & .Caption
			Debug.Print "Position left: " & .Left
			Debug.Print "Position top: " & .Top
			Debug.Print "Width: " & .Width
			Debug.Print "Height: " & .Height
		End With
	Next i
End Sub