DisableIfParent Data Member Function

Disables the command if the parent is derived from the specified type or types.

Prototype

static int32 DisableIfParent( CommandPresentationModuleInfo p_oInfo, TypeInformation p_oTypeInfo, TypeInfoArray p_oArray, 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_oTypeInfoOptional <TypeInformation> pointer representing a single type to test.
<TypeInfoArray>p_oArrayAn array of <TypeInformation> pointers representin multiple types to test.
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.