Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12646

Re: Webbrowser

From "Alessandro Vacchiano" <alessandro@computerscenter.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Webbrowser
Date 2019-09-18 11:23 +0200
Organization Aioe.org NNTP Server
Message-ID <qlst22$aos$1@gioia.aioe.org> (permalink)
References (5 earlier) <gubk2qF2585U1@mid.individual.net> <qlqhqu$1j24$1@gioia.aioe.org> <qlqprh$q10$1@gioia.aioe.org> <qlsjlo$tt2$1@gioia.aioe.org> <qlslgp$16hn$1@gioia.aioe.org>

Show all headers | View raw


Unfortunately is not this the problem ....

If i found the solution i will share immediatly.

Thank to everybody Alessandro

"Arne Ortlinghaus"  ha scritto nel messaggio 
news:qlslgp$16hn$1@gioia.aioe.org...

Hi Alessandro

- Which Windows version has been installed exactly? (Visible as Version
with Winver.exe)

- Probably it is nessessary to tell Internet Explorer to emulate
Internet Explorer 11 specifying the name of your exe program. I have
attached a class which does this.

Arne


method CheckExistIExplorerVersion (lforcecheck as logic) as dword pascal
class clsInternetbrowserhandler
local iret as dword
if lforcecheck .or. !_lfirstchecked
    iret := self:__CheckExistIExplorerVersion()
    _lfirstchecked := true
else
    iret := _ipreviousvalue
endif
return iret

method __CheckExistIExplorerVersion () as dword pascal class
clsInternetbrowserhandler
local iret as dword
local cvaluename, csubkey as string
csubkey := "Software\Microsoft\Internet
Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION"
cvaluename := fgetfilenameandext(FGetExeFullPath())

iret := QueryRegInt(HKEY_CURRENT_USER, csubkey, cValueName, 0)

if iRet == 0 .and. self:nautocorrectvalue > 0
    SetRegInt   (HKEY_CURRENT_USER, cSubKey, cValueName,
self:nautocorrectvalue)
    iret := QueryRegInt(HKEY_CURRENT_USER, csubkey, cValueName, 0)
    _ipreviousvalue := iret
endif


return iret
access nautocorrectvalue as dword pascal class clsInternetbrowserhandler
return _nautocorrectvalue
class clsInternetbrowserhandler
//p Prüfung richtige Installation des Internet Explorers
// Todo 112500 AO 2017-08-22 15:00 Kontrolle Berechnung Geo-Koordinaten:
Verwendeter Browser wird von Google Maps Javascript API nich
// und
// Todo 93927 AO 2017-08-22 15:00 Darstellung Internetbrowsercontrol
protect _lfirstchecked as logic
protect _nautocorrectvalue, _ipreviousvalue as dword
declare method CheckExistIExplorerVersion, __CheckExistIExplorerVersion
declare access nautocorrectvalue
declare assign nautocorrectvalue

/*
nautocorrectvalue Values

The value specifies the IE version as follows:

The value to set this key to is (taken from MSDN here) as decimal values:

11001 (0x2AF9)
Internet Explorer 11. Webpages are displayed in IE11 Standards mode,
regardless of the !DOCTYPE directive.

11000 (0x2AF8)
Internet Explorer 11. Webpages containing standards-based !DOCTYPE
directives are displayed in IE9 mode.

10001 (0x2AF7)
Internet Explorer 10. Webpages are displayed in IE10 Standards mode,
regardless of the !DOCTYPE directive.

10000 (0x2710)
Internet Explorer 10. Webpages containing standards-based !DOCTYPE
directives are displayed in IE9 mode.

9999 (0x270F)
Internet Explorer 9. Webpages are displayed in IE9 Standards mode,
regardless of the !DOCTYPE directive.

9000 (0x2328)
Internet Explorer 9. Webpages containing standards-based !DOCTYPE
directives are displayed in IE9 mode.

8888 (0x22B8)
Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE
directive.

8000 (0x1F40)
Webpages containing standards-based !DOCTYPE directives are displayed in
IE8 mode.

7000 (0x1B58)
Webpages containing standards-based !DOCTYPE directives are displayed in
IE7 Standards mode. This mode is kind of pointless since it's the default.

Setting these keys enables your applications to use the latest Internet
Explorer versions on your machine easily. Unfortunately there doesn't
seem to be a key that says use the latest version that's installed - you
have to be specific regarding the version unfortunately. Given that
Windows 7 and later can run IE 11, I'm requiring users to have IE 11 if
I want to use HTML5 and more advanced CSS features like Flexbox, but if
your content is simpler you can probably get away with using IE 10 or
even IE 9.
*/
method Init() class clsInternetbrowserhandler
_nautocorrectvalue := 11001
return self

assign nautocorrectvalue (n as dword) as void pascal class
clsInternetbrowserhandler
_nautocorrectvalue := n
return


Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-13 09:58 +0200
  Re: Webbrowser dlzc <dlzc1@cox.net> - 2019-09-13 07:16 -0700
    Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-16 09:05 +0200
  Re: Webbrowser Sherlock <sherlock@sherlock.com.au> - 2019-09-14 08:48 -0700
    Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-16 09:03 +0200
      Re: Webbrowser "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-09-16 15:50 +0200
        Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-16 16:01 +0200
          Re: Webbrowser "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-09-17 10:33 +0200
            Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-17 13:59 +0200
              Re: Webbrowser Arne Ortlinghaus <Arne.Ortlinghaus@acs.it> - 2019-09-17 16:16 +0200
                Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-18 08:43 +0200
                Re: Webbrowser Arne Ortlinghaus <Arne.Ortlinghaus@acs.it> - 2019-09-18 09:14 +0200
                Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-18 11:23 +0200
  Re: Webbrowser Frans Wauters <info@wautersit.com> - 2019-09-18 06:28 -0700
    Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-18 17:43 +0200
  Re: Webbrowser "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2019-09-18 17:38 +0200

csiph-web