I’m not sure how to go about trapping events in 3rd party ActiveX objects. Maybe due to how I am handling them (in RS 2012r2.1 or Xojo 2013r2)?
Adding an ActiveX control directly to my project raised many compiler issues. But as was pointed out to me earlier adding an OLEContainer
to a window and right clicking in it and picking Choose ActiveX Control… allows me to access ActiveX controls. Extracting the OLEObject from its
container and using the OLEObject’s Invoke() and Value() methods work well enough and I’m getting the results I expected (so far).
I’ve been slowly converting an old VB6 project to RS using a modern version of an old control. Now I’m far enough into the conversion that I’m realizing I need
to trap events generated by the control. I’ve read about the OLEObject.EventTriggered method. But I don’t understand how this method could be used or how
it could be implemented (if indeed that’s the intention). If I add this method and use an valid event name there’s no compile issue but an OLEException
Unknown Name: failed on EventTriggered.
So is trapping events from controls even possible?