Update cookies preferences
Promotic

Object PmgObject (Parent of all Pmg objects)

Description:
PmgObject is an abstract Pmg object. It cannot be created in the panel and it cannot be configured.
PmgObject is a parent of all Pmg objects in the PROMOTIC system, it means that its properties and methods are also available for all other Pmg objects.

The object can be inserted into the panel from the "Pmg objects preconfigurations" window.

#vars identifier:
In the PmgObject object, the #vars identifier can be used to access the variables defined on the "Variables" tab. This identifier can be used:
- in methods used for acessing Pmg objects - for example the method Items("/text1/#vars/aaa") returns the "aaa" variable of the Pmg object "text1".
- in the "GP - Pmg object property" data binding, where you can also find detailed description and examples for #vars.
Properties and methods:
AddEvent()Registers a function into the specified event
Blink()Starts/stops blinking of the Pmg object
DxWidth of the Pmg object
DyHeight of the Pmg object
EnabledEnable/disable the control, i.e. user's inputs to the object
FocusDetects/set the focus of the Pmg object
GetChildByIndex()Returns the nested Pmg object defined by order
GetChildCount()Returns the number of nested Pmg objects
GetPathName()Object name with the path to this object
GetItemInfo()Returns special information regarding the Pmg object
GetPar()Reading the value of the Pmg object parameter (or its parents)
GetVarCount()Returns the number of the Pmg object variables
IniDxInitial width of the Pmg object
IniDyInitial height of the Pmg object
IniXInitial X-position of the left upper corner of the Pmg object relative to superior object
IniYInitial Y-position of the left upper corner of the Pmg object relative to superior object
Items()Returns reference to the Pmg object
MethodsAccess to designer methods of this object
MouseOnIdentification if the mouse cursor finds itself over the Pmg object
NameThe name of the Pmg object
ParentReturns reference to the parent Pmg object
Pm()Returns the Pma object (obsolete)
PmPanelReturns reference to the PmaPanel object where the Pmg object is placed
Refresh()Refresh of the Pmg object
RemoveEvent()Unregisters the function in the specified event
RootReturns reference to the root PmgRoot object
ShowMenu()Opens context menu of the Pmg object
ScreenXX-coordinate of the left upper corner of the Pmg object relative to computer screen
ScreenYY-coordinate of the left upper corner of the Pmg object relative to computer screen
ToolTipTooltip text of the Pmg object
Vars()Returns the variable of the Pmg object
ViewXPosition of X-coordinate of the left upper corner of the Pmg object relative to the PmgRoot object
ViewYPosition of the Y-coordinate of the left upper corner of the Pmg object relative to the PmgRoot object
VisibleVisibility of the Pmg object
XX-coordinate of the left upper corner of the Pmg object relative to superior Pmg object
YY-coordinate of the left upper corner of the Pmg object relative to superior Pmg object
Obsolete properties and methods:
GetProp()Reading the value from any property of the object defined by its name
SetProp()Writing the value into the property of the object defined by its name
FullNameName of the Pmg object including the path that consists of parent Pmg objects names
Events:
onStartIs triggered on the construction of the Pmg object in the course of opening the panel
onStopIs triggered on the destruction of the Pmg object in the course of closing the panel
onRefreshIs triggered on the data refresh of the Pmg object
onKeyPressIs triggered after pressing or releasing the key of the keyboard
onMousePressIs triggered after pressing or releasing the left mouse button
onMenuFillIs triggered after pressing by the right mouse button over the Pmg object
onMenuSelectIs triggered on the selection of the item from the Pmg object context menu
onModeChangeIs triggered when the Pmg object mode changes
onFocusInIs triggered if the object receives focus
onFocusOutIs triggered if the object loses focus
Configuration tabs:
ObjectGeneral information about the object
RangesSetting technological and instrumental ranges
BoxSetting the background area of the Pmg object
EventsAlgorithms definition for the object events
MethodsDefinition of designer method of the Pmg object
PositionSetting the position, width and height of the Pmg object
ScaleSettings for displaying the meter scale
VariablesList and configuration of user defined Pmg object variables

History:
Pm9.00.00: Object name changed: PmiItem -> PmgObject
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.