ArcFM Desktop Developer Guide
EnabledEx Method


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

Variant
Allows the developer to evaluate the selected item and enable or disable the tool in the context menu. Requires a variant value.
Syntax
'Declaration
 
Function EnabledEx( _
   ByVal vSelection As Object _
) As Integer
'Usage
 
Dim instance As IMMTreeViewToolEx
Dim vSelection As Object
Dim value As Integer
 
value = instance.EnabledEx(vSelection)
int EnabledEx( 
   object vSelection
)

Parameters

vSelection
Variant

Return Value

Long
Example
The following code sample demonstrates how the IMMTreeViewToolEx::EnabledEx method may be implemented.
Visual Basic Copy Code
Private Function IMMTreeViewToolEx_EnabledEx(ByVal vSelection As Variant) As Long
    Dim pCol As Collection
    Set pCol = vSelection
    Dim pListItem As ID8ListItem
    Set pListItem = pCol.Item(1) ' just one item
    If Not Typeof pListItem Is IMMPxNode Then Exit Function
    Dim pPxNode As IMMPxNode
    Set pPxNode = pListItem 'QI

    IMMTreeViewToolEx_EnabledEx = InternalEnabled(pPxNode) + IMMTreeViewToolEx_EnabledEx
End Function
Requirements

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.

See Also

Reference

IMMTreeViewToolEx Interface
IMMTreeViewToolEx Members

 

 


Send Comment