The following tables list the members exposed by ShowBrowseTree.
Name | Description | |
---|---|---|
ShowBrowseTree Constructor | Constructor. An object is created for the given OPC server and the Forms TreeView control. No OPC server access is done in this constructor. The Show() method needs to be called to have the server browsed and the result displayed in the specified control. |
Name | Description | |
---|---|---|
AccessRightsFilter | Filter for read/write access rights. The value 0 returns all items. | |
BrowseModeOneLevel | If true the the server browsing is done on demand. Initially only one level is browsed. Sub-branches are browsed from the TreeView event handler when a yet unbrowsed branch is selected. If false then the whole server tree structure is browsed and a corresponding TreeNode structure is built. NOTE: With complex servers this may take a long time. | |
DataTypeFilter | Data type used in the the OPC server browse calls. The default is void (VT_EMPTY). A different type needs to be set before the Browse method is called. | |
DoNotSort | Branches and items are alphabetically sorted. If TRUE the sorting is diabled and the branches/items are in the order as returned by the server. | |
ImageIndexBranch | Index of the image displayed for a branch | |
ImageIndexBranchSelected | Index of the image displayed for the selected branch | |
ImageIndexItem | Base Index of the image group the item identification. The item accessRight code is added and the image with this index is displayed. | |
ImageList | Image list used in the BrowsTree | |
ItemCodeIndex | Code used to identify items and branches in TreeNode.ImageIndex The isBranchand isItem methods use thye definition to find the type of the node. Default: Item: >= 2 | |
ItemTree | ||
NameFilter | Name filter used in the the OPC server browse calls. The default is NULL. A different filter string needs to be set before the Browse method is called. |
Name | Description | |
---|---|---|
Dispose | The underlying BrowseTree object is released and the event handler for the associated TreeView dialog is uninstalled. | |
isBranch | Checks if a node is a branch or an item. | |
isItem | Checks if a node is an item or a branch | |
ItemName | Get the full name of the item/branch in the specified branch. This method is typically used to get the name of the node selcted in a treeView. | |
RefreshSelectedBranch | The currently selected branch is refreshed from the server by executing a browse with the current filter. | |
Show | Browses the server and display the branches and items in a TreeView control. | |
ShowImageList | Show all images defined in the associated ImageList |
Name | Description | |
---|---|---|
getBrowseFilter | This handler is called everytime the OPC server BrowseItemIDs method is called to get the browse filters to be used. | |
reportBrowseError | This handler is called in the TreeView mouse event handler when an error happens in the server browse access. |