Allows the developer to evaluate the selected item and enable or disable the tool in the context menu.
            
            
            
    The following code sample demonstrates how the IMMTreeViewTool::Enabled property may be implemented.
    
        
            
                | Visual Basic |  Copy Code | 
            
                | 
                        
                            
                                
                                    | Private Property Get IMMTreeViewTool_Enabled(ByVal pSelection _As Miner.Interop.FrameworkUI.IMMTreeViewSelection) As Long
 If pSelection Is Nothing Then Exit Property
 If pSelection.Count <> 1 Then Exit Property
 
 Dim pListItem As ID8ListItem
 Dim pPxNode As IMMPxNode
 
 pSelection.Reset
 Set pListItem = pSelection.Next
 
 If Not (Typeof pListItem Is MMPXBASELib.IMMPxNode) Then
 Exit Property
 End If
 Set pPxNode = pListItem
 
 IMMTreeViewTool_Enabled = InternalEnabled(pPxNode) + _
 IMMTreeViewTool_Enabled
 End Property
 |  | 
        
    
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.