xbpHtmlViewer : change default browser ??
Posted: Wed Feb 29, 2012 3:38 am
i am using DCHTMLVIER (aka xbpHtmlViewer) more and more for dynamic web content. The problem is that some scripts and routines have problems running in Internet Explorer because it is not "as compatible" to the HTML standards as Firefox or others (yes - even IE 8 and IE 9 are pretty bad).
My idea is to change the source code of AXCTRLS.PRG to use anotherweb browser for xbpHtmlViewer.
This is the beginning of the source code of axctrls.prg :
#define SBAR_PROGID "MSComctlLib.SBarCtrl"
#define SBAR50_PROGID "COMCTL.SBarCtrl"
#define TBAR_PROGID "MSComctlLib.Toolbar"
#define TBAR50_PROGID "COMCTL.Toolbar"
#define RTF_PROGID "RICHTEXT.RichtextCtrl"
#define HTML_PROGID "Shell.Explorer" <============================= this is the one i am trying to change to Firefox
#define IMGLISTCTRL50_PROGID "COMCTL.ImageListCtrl"
#define MSCOMCTRL_LICENSE "9368265E-85FE-11d1-8BE3-0000F8754DA1"
#define MSCOMCTRL50_LICENSE " qhj ZtuQha;jdfn[iaetr "
But changing the above line to something like
#define HTML_PROGID "FirefoxURL" or
#define HTML_PROGID "FirefoxHTML"
doesn´t work. Are these wrong PROGIDs ? or is there more to change ? or is it impossible to use another browser for xbpHtmlVierer class ??
Thanks in advance
Klaus Bischoff
My idea is to change the source code of AXCTRLS.PRG to use anotherweb browser for xbpHtmlViewer.
This is the beginning of the source code of axctrls.prg :
#define SBAR_PROGID "MSComctlLib.SBarCtrl"
#define SBAR50_PROGID "COMCTL.SBarCtrl"
#define TBAR_PROGID "MSComctlLib.Toolbar"
#define TBAR50_PROGID "COMCTL.Toolbar"
#define RTF_PROGID "RICHTEXT.RichtextCtrl"
#define HTML_PROGID "Shell.Explorer" <============================= this is the one i am trying to change to Firefox
#define IMGLISTCTRL50_PROGID "COMCTL.ImageListCtrl"
#define MSCOMCTRL_LICENSE "9368265E-85FE-11d1-8BE3-0000F8754DA1"
#define MSCOMCTRL50_LICENSE " qhj ZtuQha;jdfn[iaetr "
But changing the above line to something like
#define HTML_PROGID "FirefoxURL" or
#define HTML_PROGID "FirefoxHTML"
doesn´t work. Are these wrong PROGIDs ? or is there more to change ? or is it impossible to use another browser for xbpHtmlVierer class ??
Thanks in advance
Klaus Bischoff