Powerbuilder Ole Control Microsoft Web Browser

Posted on -
Powerbuilder Ole Control Microsoft Web Browser 3,5/5 773 reviews

I am using PowerBuilder 2017 and have created an OLE control (Microsoft Web Browser) with a local html file using Leaflet JS.

  1. Microsoft Edge Download
  2. Bing

Microsoft Edge Download

Powerbuilder Ole Control Microsoft Web Browser

MS Web Browser Ole Control Im using the MS Web Browser Ole Control in PB 7.02 and wrote a web browser for our users. We restrict what websites a user can go to by having it connected to a DB. In the DB is a list of sites they can go to. I'm using WebBrowser control in a window inside a PowerBuilder 11.5 application. Everything works fine on IE7 and IE8 but the application crashes in IE9 under Windows 7 when you select an item in a tag. In IE7 and IE8 I added my application to registry key FEATURE_USE_WINDOWEDSELECTCONTROL.

When a user clicks on a marker on the leaflet map I would like a reference value (coordinates) sent back to PowerBuilder where the code there can react to the user event.

My question is how can I get a javascript event to also trigger an event in the main PowerBuilder application?

drewglewdrewglew

1 Answer

After a lot of investigating I have managed to solve my problem, I added the following code into PowerBuilder, inside the OLE Control's click event:

ActiveElement is the method to use. I obtain the Leaflet class and can identify it is in fact a Marker PopUp that was clicked.

Microsoft web browser download

Bing

Powerbuilder Ole Control Microsoft Web Browser
drewglewdrewglew

Not the answer you're looking for? Browse other questions tagged javascriptpowerbuilderole or ask your own question.