Tests the selection and enables the command if the selection matches the specification submitted to this function.
static int32 TestSelection( CommandPresentationModuleInfo p_oInfo, TypeInformation p_oTypeInfo, int32 p_nCount, int32 p_bMatch, string p_sHint )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<CommandPresentationModuleInfo> | p_oInfo | A pointer to the <CommandPresentationModuleInfo> object that is managing command display for the application. |
TypeInformation | p_oTypeInfo | A <TypeInformation> pointer representing the type to test. |
int32 | p_nCount | The number of items that must be selected. Use -1 to allow any number of selected items. |
int32 | p_bMatch | The type of the selected <Node> object must match exactly if true. Otherwise a subclass is considered a valid match. |
string | p_sHint | The 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. |
None published. Please look for an example in the Scenome Scripting Language code base.