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.
|
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!
|
Rank: Advanced Member Groups: Member
Joined: 1/2/2017 Posts: 32
|
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!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Excellent workaround -- but you are on your own on this one. We do not recommend you to use top most anytime at all.
|