-
Kari Paukku
- PowerBuilder
- Monday, 28 January 2019 11:42 AM UTC
Hi,
I have created a small ActiveX control using Visual Studio 2015. Attaching that to a PB window is ok and I can execute the ActiveX functions from the PB window using ole_1.object.MyCustomFunction().
I have also programmed some events and as the ActiveX is based on a 3rd party control (DevExpress) it has its own events. I can refer in PB code to these events (ole_1.object EVENT MyEvent() but I can't see the event in the Events DropDownList for the OLE object.
Reading the PB documentation, if I understood it correctly, the events should be merged.
Using events of the ActiveX control
An ActiveX control has its own set of events, which PowerBuilder merges with the events for the custom control container. The ActiveX control events appear in the Event List view with the PowerBuilder events.
I have tested this using PB 2017 and PB2018 and the behaviour is the same - no events visible.
Would anyone have any idea what I'm doing wrong or a small example that has a custom ole control with custom events programmed into it?
Thanks,
ktp
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.