Page 1 of 2

Opening A Website

Posted: Tue Oct 10, 2023 4:58 am
by clp1000
Hello

In the past, we've used this to open a webpage :
CreateObject( "InternetExplorer.Application" )

Is there a way of changing Explorer to Edge so this can be opened externally ?
Thanks
Chris

Re: Opening A Website

Posted: Tue Oct 10, 2023 6:11 am
by Tom
Since last year, Alaska delivers the "XbpHtmlViewer2"-asset with Xbase++ 2.0, which is a wrapper to the Microsoft WebView2 control, which is the base of Edge. This is a state-of-the-art-control to show any kind of HTML with all stuff needed in there. Just add the asset to your project and navigate to any website with the navigate method.

If you use the DCHTMLVIEWER, you just need to add the asset to the DCLIPX_20-project and change any call of "XbpHtmlViewer" to call "XbpHtmlViewer2" there. This is what I did. Works perfect. We needed that since all the GoogleMaps-APIs didn't support IE anymore. XbpHtmlViewer2 is also much faster, supports JS, CSS and whatever you want.

Re: Opening A Website

Posted: Tue Oct 10, 2023 10:22 am
by rdonnay
If you use the DCHTMLVIEWER, you just need to add the asset to the DCLIPX_20-project and change any call of "XbpHtmlViewer" to call "XbpHtmlViewer2" there.
I didn't know about this.
I will make this change in eXpress++

Re: Opening A Website

Posted: Mon Dec 18, 2023 7:35 am
by skiman
Hi Roger,

Is this already available or is this on your todo list?

Re: Opening A Website

Posted: Mon Dec 18, 2023 8:06 am
by Tom
Is this already available or is this on your todo list?
Just add the XbpHtmlViewer2-asset to the project "DCLIPX_20.XPJ" and replace any call to XbpHtmlViewer with XbpHtmlViewer2 in the DCLIPX-sourcefiles. Rebuild everything. That's it.

Re: Opening A Website

Posted: Mon Dec 18, 2023 8:49 am
by skiman
Hi Roger,

Don't bother.

There is a difference in the xbphtmlviewer and xbphtmlviewer2 which makes it useless for me. I'm using the htmlviewer to view PDF files and to copy content from it. In the old version you can double click on a word and drag it immediately. In the htmlviewer2 this isn't working anymore. So this is a show stopper for me.

I already noticed this about a year ago and was hoping with the latest update it would work.

Re: Opening A Website

Posted: Mon Dec 18, 2023 6:11 pm
by Auge_Ohr
hi,

it is IMHO not a Problem of EDGE itself, it is while EDGE internal PDF Viewer does support OLE Drag_Source
Xbase++ App can not receive OLE Drop as Drop_Target, only CF_TEXT or CF_BITMAP work with DragAccept()

---

there is are Tools, like xPDFreader, to extract TEXT from PDF
https://www.xpdfreader.com/download.html

Re: Opening A Website

Posted: Mon Dec 18, 2023 11:36 pm
by Tom
This is not what Chris is talking about. With the IE control, you can double-click on a text (a word) and just move it (in order to drag it and drop it elsewhere). With the edge control, you can double-click and the word gets marked, but if you try to grab it (in order to drag and drop), the marked zone vanishes - the marking process restarts. The behaviour is different. Maybe there is a good hidden registry setting to change this behaviour, but it seems to be hard to find.

Besides this, the webview2 control is lightyears away from the IE control.

Re: Opening A Website

Posted: Tue Dec 19, 2023 1:20 am
by skiman
Hi Tom,

Yes, that's exactly the problem.

Re: Opening A Website

Posted: Tue Dec 19, 2023 2:00 am
by Auge_Ohr
hi,

i can not confirm that Dblckick does not mark Word for Dragdrop in Webviev2 in my Sample (HMG, Fivewin)
Webview2_DD.gif
Webview2_DD.gif (107.22 KiB) Viewed 2593 times
Webview2 Control must be register as Drag_Source else it will not mark/Dragdrop

---

@Chris : you can use SumatraPDF Viewer without Browser and mark/Dragdrop as CF_TEXT
p.s. can be control via DLL Call from App