Update cookies preferences
Promotic

Object PmfTree

Description:
This object represents one form item of the type: Tree.
Properties and methods of this object:
BgColorThe property returns or sets the background color of the tree
TextColorThe property returns or sets the text color of the tree items
TreeRootThe property returns the PmfTreeItem object, that represents the root item of the tree
TreeRootVisibleSetting the visibility of the root tree item
Related objects:
PmfTreeItem(Tree item) The object represents a tree item
Properties and methods that are common to all objects of the PmfObject type:
AddEvent()Registers a function into the specified event
BodyFontFont of the Body area of the Pmf object
BodyHeightIniInitial height of the Body area
BodyHeightModeThe way of changing the Body area height
BodyWidthIniInitial width of the Body area
BodyWidthModeThe way of changing the Body area width
EnabledEnable/disable editing of values
FormReturns PmForm object
IdPmf object identifier
ParentReturns reference to the parent Pmf object
PrivateDataPrivate value of the object
RemoveEvent()Unregisters the function in the specified event
TitleDisplayed name of the Pmf object
TitleFontFont of the Title area of the Pmf object
TitlePosPosition of the Title area of the Pmf object
TypePmf object type
VisibleVisibility of the Pmf object
Events:
onActionIs triggered when an important logical action happens over the object
onExpandIs triggered when expanding or collapsing the tree item
onFocusIs triggered if the Pmf object gets or loses focus
onItemRequestIs triggered with request to create subitems for dynamic tree item
onSelChangeIs triggered when tree item selection changes
Note:
- The object can be created by method PmForm.CreateItem("tree", ...).
- This object is functional also in Web panels.


Tree items:
root - root tree item: The root tree item is created automatically when of the PmfTree object is created. This item cannot be removed or its identifier changed.
item - tree item: internal tree item that has both parent item and subitems
leaf - terminal tree item: tree item that has no subitems
branch - tree branch: the set of items consisting of the given item and all its subitems up to the last level


- Individual tree items can be created by the PmfTreeItem.CreateItem method.
- The item can be accessed by by the PmfTreeItem.GetItem method.
- Not all tree items need to be created at the start of the viewing process. They can be filled dynamically when the item is expanded. See the PmfTreeItem.RequestType property.
- Each tree item can be assigned a private value (see the PmfTreeItem.PrivateData property), which can then be used for example in the onSelChange event.

History:
Pm9.00.26: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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