runkelruebe
Programmer
Hello,
I integrated a custom OCX into my Powerbuilder application. It is not visible, but will be integrated as a variable.
Calling the functions and properties of the OCX works fine, but how can I handle events coming from the OCX?
The control (phone helper) will be instantiated like this:
The ocx f.e. has an event callEstablished(). I wrote an event in my wrapper class with the same name
, but this does not work.
Does anybody can tell me, how I can map the ocx events to Powerbuilder events?
I'm using WindowsXP and Powerbuilder 9.0.3.
Thanx, Joe
I integrated a custom OCX into my Powerbuilder application. It is not visible, but will be integrated as a variable.
Calling the functions and properties of the OCX works fine, but how can I handle events coming from the OCX?
The control (phone helper) will be instantiated like this:
Code:
oleobject ocxObject
myOcxWrapperClass ocxChild
ocxObject = create oleobject
//connect to ocx class
li_rc = ocxObject.ConnectToNewObject("OcxName.PhoneClass")
ocxChild = create myOcxWrapperClass
//set link to automation object
ocxChild.setAutomationPointer(ocxObject)
The ocx f.e. has an event callEstablished(). I wrote an event in my wrapper class with the same name
Code:
myOcxWrapperClass.event callEstablished()
Does anybody can tell me, how I can map the ocx events to Powerbuilder events?
I'm using WindowsXP and Powerbuilder 9.0.3.
Thanx, Joe