Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catch events from OCX

Status
Not open for further replies.

runkelruebe

Programmer
Jul 20, 2007
1
DE
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:

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()
, 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top