08-26-2009, 01:38 PM
Could someone please help me with this question?
How can I add a link to the HTML displayed in a web browser control?
The link works when run in IE (see -> http://www.w3schools.com/HTML/tryit.asp ... _locations),
but the link does not work inside this control.
Thanks,
Brad
----------------------------------------
\Dialog_Editor
typelib SrchUILib {ECA4E801-17AE-4863-9F5C-AF4047AABEE0} 1.0
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str ax3SHD =
<html>
<body>
<p>
<a href="#C7">See also Chapter 7.</a>
</p>
<h2>Chapter 1</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 2</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 3</h2>
<p>This chapter explains ba bla bla</p>
<h2><a name="C4">Chapter 4</a></h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 5</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 6</h2>
<p>This chapter explains ba bla bla</p>
<h2><a name="C7">Chapter 7</a></h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 8</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 9</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 10</h2>
<p>This chapter explains ba bla bla</p>
</body>
</html>
if(!ShowDialog("dialog_web1" &dialog_web1 &controls)) ret
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 600 407 "Form"
3 ActiveX 0x54000000 0x0 0 0 580 394 "SHDocVw.WebBrowser"
END DIALOG
DIALOG EDITOR: "" 0x203000C "" "" ""
ret
messages
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case IDOK
case IDCANCEL
ret 1
How can I add a link to the HTML displayed in a web browser control?
The link works when run in IE (see -> http://www.w3schools.com/HTML/tryit.asp ... _locations),
but the link does not work inside this control.
Thanks,
Brad
----------------------------------------
\Dialog_Editor
typelib SrchUILib {ECA4E801-17AE-4863-9F5C-AF4047AABEE0} 1.0
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str ax3SHD =
<html>
<body>
<p>
<a href="#C7">See also Chapter 7.</a>
</p>
<h2>Chapter 1</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 2</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 3</h2>
<p>This chapter explains ba bla bla</p>
<h2><a name="C4">Chapter 4</a></h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 5</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 6</h2>
<p>This chapter explains ba bla bla</p>
<h2><a name="C7">Chapter 7</a></h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 8</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 9</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 10</h2>
<p>This chapter explains ba bla bla</p>
</body>
</html>
if(!ShowDialog("dialog_web1" &dialog_web1 &controls)) ret
BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 600 407 "Form"
3 ActiveX 0x54000000 0x0 0 0 580 394 "SHDocVw.WebBrowser"
END DIALOG
DIALOG EDITOR: "" 0x203000C "" "" ""
ret
messages
sel message
case WM_INITDIALOG
case WM_DESTROY
case WM_COMMAND goto messages2
ret
messages2
sel wParam
case IDOK
case IDCANCEL
ret 1