General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Creating event aware objects

  • JRP

    Creating event aware objects

    Participants 0
    Replies 1
    Last Activity 4 years, 5 months ago

    I'm using XMetal 11 Author Enterprise version 11.0.0.066.

    Is it possible to use WScript.CreateObject in a macro to enable event handling from .NET objects?  When I try to use the following jscript in a macro, the code fails to create the object.

    var objTest = null;
    objTest = WScript.CreateObject(“testEvents.testEvent”,”objTest”);

    As I understand it, creating objects using new ActiveXObject or CreateObject generically does not allow the script to consume events raised from an object.  Any help with processing events raised from .NET objects would be appreciated.

    Reply

    XMetaLOldTimer

    Reply to: Creating event aware objects

    There is no support for automatic event sink binding via the script engines within XMetaL.  You have to setup things manually and program APIs to receive XMetaL script engine objects. 

    Fwiw, we have an old .NET 1.1 sample that demonstrates calling from XMetaL to a .NET control and vica versa….NET calling a Jscript object in XMetaL's script engine.

    Regards,
    Addam

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support