TestParent Data Member Function

Enables the command in the UI if the parent is derived from the specified type.

Prototype

static int32 TestParent( CommandPresentationModuleInfo p_oInfo, TypeInformation p_oTypeInfo, 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.
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.