bb.donnay-software.com

Donnay Software Web Forums
It is currently Mon Jun 01, 2020 6:35 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: XbpHtmlViewer
PostPosted: Tue May 01, 2018 2:30 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 12:59 am
Posts: 772
Location: Berlin, Germany
XbpHtmlViewer is even with Xbase++ 2.0 a wrapper for the IE activex-control, using compatibility mode for IE version 4.0 (!). XbpHtmlWindow is not able to work with JS code. So, if trying to display GoogleMaps within a dialog, XbpHtmlViewer says "You're using a much too old browser", XbpHtmlWindow only displays the static elements (the header). I need to use GM inside my dialogs. Any ideas?

_________________
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Tue May 01, 2018 6:17 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4125
Location: Boise, Idaho USA
Tom - Please post some sample code that you are using.

I would like to run it.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Thu May 03, 2018 5:19 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 12:59 am
Posts: 772
Location: Berlin, Germany
If anyone has the same problem - Roger helped me a little, Alaska (Till) showed the solution:

The IE control works in compatibility mode for IE 4/6 by default, but you can set the mode to 11/edge by adding a DWORD regstry key with your app's name (myapp.exe) to

Computer\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

containing "2AF9" (11001 binary). Works!

_________________
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Thu May 03, 2018 5:53 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4125
Location: Boise, Idaho USA
How do you enter your app's name in the registry key?

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Thu May 03, 2018 5:59 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 12:59 am
Posts: 772
Location: Berlin, Germany
Code:
DC_RegWrite(HKEY_CURRENT_USER,'Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION','myapp.exe',11001)


FEATURE_BROWSER_EMULATION is the key group, and you can set keys for all apps you manage.

_________________
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Thu May 03, 2018 6:29 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4125
Location: Boise, Idaho USA
That's great!!

I added the below code to the beginning of the WebBrow.prg sample program in ..\samples\activex\webbrow.prg.

This is generic for any Xbase++ program.

I ran your sample HTML and it worked with no Javascript errors.

Code:
DC_RegWrite(HKEY_CURRENT_USER,'Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION', ;
            AppName(),11001)

Attachment:
html.jpg
html.jpg [ 108.12 KiB | Viewed 5869 times ]

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Fri May 04, 2018 2:20 am 
Offline

Joined: Thu Jan 28, 2010 1:22 am
Posts: 863
Location: Sijsele, Belgium
Hi,

On my system this looks as it is not a very stable solution? The sample program exits without any warning after 5 minutes.

_________________
Best regards,

Chris.
www.aboservice.be


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Fri May 04, 2018 3:57 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 12:59 am
Posts: 772
Location: Berlin, Germany
Hi, Chris.

I can't confirm this. The modified WEBBROW-sample works on serveral machines with Windows 10 (32/64) and with Windows 7 (the key should be ignored here), it runs without stopping. Do you get an XPPFATAL? What does it say?

_________________
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Fri May 04, 2018 5:11 am 
Offline

Joined: Thu Jan 28, 2010 1:22 am
Posts: 863
Location: Sijsele, Belgium
Hi Tom,

No error at all. The screen disappears without any notice and no xppfatal.
I tried it with http://maps.google.com and I moved the map with the mouse. It start without problem, is getting slow and suddenly it disappears.
I had the same problem with our online manual, I was trying to have display it in our application.
Last test was with a youtube training movie we made.

_________________
Best regards,

Chris.
www.aboservice.be


Top
 Profile  
 
 Post subject: Re: XbpHtmlViewer
PostPosted: Fri May 04, 2018 5:18 am 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1184
rdonnay wrote:
I ran your sample HTML and it worked with no Javascript errors.
Code:
DC_RegWrite(HKEY_CURRENT_USER,'Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION', ;
            AppName(),11001)
can you please share TEST.HTM :pray:

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group