OriginObject::SetEventHandler

Description

Install an Event Handler to the object.

Syntax

BOOL SetEventHandler( LPCSTR lpcszClassName )

Parameters

lpcszClassName
[input] name of the Origin C class, it must be registered and compiled before it can be used

Return

Examples

See OriginObject::GetEventHandler Examples

Remark

Install an Event Handler to the object. Event handlers are Origin C classes that are derived from ObjectCmdTarget class.

In principle, all class objects that are derived from OriginObejct are capable of handling Event Handlers, but not all of them have internal events properly connected to Origin C. Currently, only the followings are supported, more will be added in the future.

GraphObject Worksheet WorksheetPage Column

See Also

OriginObject::GetEventHandler

header to Include

origin.h