TestSelection Data Member Function

Tests the selection and enables the command if the selection matches the specification submitted to this function.

Prototype

static int32 TestSelection( CommandPresentationModuleInfo p_oInfo, TypeInformation p_oTypeInfo, int32 p_nCount, int32 p_bMatch, string p_sHint )

Parameters

Parameter Type Parameter Name Documentation
<CommandPresentationModuleInfo>p_oInfoA pointer to the <CommandPresentationModuleInfo> object that is managing command display for the application.
TypeInformationp_oTypeInfoA <TypeInformation> pointer representing the type to test.
int32p_nCountThe number of items that must be selected. Use -1 to allow any number of selected items.
int32p_bMatchThe type of the selected <Node> object must match exactly if true. Otherwise a subclass is considered a valid match.
stringp_sHintThe hint text to display in the status bar, for both success and failure cases. This hint will be displayed in the UI status bar at the lower left corner of the application.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.