IDLitOperation::QueryAvailability

The IDLitOperation::QueryAvailability function method is automatically called by the iTool to determine whether this operation is applicable for the selected data and/or visualization. By default, whenever selection changes in the tool, the operation is queried to determine if its type matches the type of the visualization or the data within the visualization. The menu item or toolbar button associated with the operation is then enabled or disabled automatically.

If you are writing a subclass of IDLitOperation and you do not want to use the standard type matching, you might want to override this method in your own subclass.

Syntax

Result = Obj->[IDLitOperation::]QueryAvailability( Tool, SelTypes )

Return Value

This method returns a 1 if the object is applicable for the selected items, or 0 (zero) otherwise.

Arguments

Tool

An object reference to the iTool object on which the operation executes.

SelTypes

A string array containing the types of the currently selected visualizations. For an explanation of iTool types, see Predefined iTool Visualization Classes (iTool Developer's Guide).

Keywords

None

Version History

6.2

Introduced