Welcome Guest Search | Active Topics | Sign In | Register

PRB - TOPMOST Window APP with EO WebBrowser control to IFRAME to SELECT/OPTIONS appear under page. Options
JSB
Posted: Tuesday, September 12, 2017 2:05:50 PM
Rank: Advanced Member
Groups: Member

Joined: 1/2/2017
Posts: 32
Please help,

We have a complicated issue, we're using the EO WebBRowser control as such:

- Windows app, that is made TOPMOST, with only the EO WebBRowser control in its GUI.
- The Web Page in the EO WebBrowser has an IFRAME.
- The IFRAME has a SELECT element.
- When clicking ont he SELECT element to see the OPTION elements, the OPTION(s) appear under the gui of the whole Windows app.

We have tried high zIndex on the SELECT, but it does not work.
If we launch a modal Windows dialog from JavaScript inside the EO-WebBrowser (via RegisterJSExtensionFunction), and the dialog closes, then suddenly, the SELECT element works properly from there on out, even if the Windows app get minimized, then resized. This last part implies, that something can be done to make sure the SELECT stay on top, but we do not know what.
eo_support
Posted: Tuesday, September 12, 2017 2:14:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,258
You will not be able to use top most window with EO.WebBrowser. As you have already discovered, it causes problems with select element. Top most is not supported by the Chromium browser engine. As such you will not be able to use it this way. Sorry about it!
JSB
Posted: Tuesday, September 12, 2017 4:21:38 PM
Rank: Advanced Member
Groups: Member

Joined: 1/2/2017
Posts: 32
Angel Thanks for the reply, and actually, you solved the issue.

Via "RegisterJSExtensionFunction" I added a function the JavaScript could call when the SELECT was clicked or focused, to run logic in the Widnows app, to have it DE-TOPMOST the Window app, temporarily, when the SELECT was otherwise being engaged, and I added logic for the SELECT's blur and changed event handler to call the same logic to turn the TOPMOST back on immediately, and then I added a window.setTimeout to call the same function again, to turn the TOPMOST back on.

Works like a champ!

Thanks!
eo_support
Posted: Wednesday, September 13, 2017 7:56:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,258
Excellent workaround -- but you are on your own on this one. Angel We do not recommend you to use top most anytime at all.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.