Article ID: 183977
Article Last Modified on 8/9/2004
Building ActiveX Controls for Internet Explorer 4.0
http://msdn.microsoft.com/workshop/components/activex/buildax.asp
119591 How to Obtain Microsoft Support Files from Online Services
183803 INFO: HTML Layout Control Is Treated as an Unsafe Control in Internet Explorer 4.x and 5.x
<DIV ID="SampleLayout" STYLE="LAYOUT:FIXED;WIDTH:419pt;HEIGHT:149pt;"> ... content here ... </DIV>You must make the following modifications to the layout file if you want to use it in Internet Explorer versions 3.02 and 4.0 or later:
<OBJECT ... STYLE="position:absolute;..."> ... parameters here ... </OBJECT>
document.write('<OBJECT');
document.write(' CLASSID="CLSID:812AE312-8B8E-11CF-93C8-0AA00C08FDF"');
document.write(' CODEBASE=');
document.write(
'"http://activex.microsoft.com/controls/mspert10.cab#version=1,0,5,1"');
document.write(' ID="Html_Layout1" STYLE="LEFT:0;TOP:0">');
document.write(' <PARAM NAME="ALXPATH" REF VALUE="RedBlue2.htm">');
document.write('</OBJECT>');
In Internet Explorer 4.0 or later, add the following script:
document.write('<IFRAME MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=0');
document.write(' WIDTH=564 HEIGHT=254 SRC="RedBlue2.htm">');
Label2.Visible = false;In Internet Explorer 4.0 or later:
Label2.style.display = "none";
<SCRIPT LANGUAGE="VBScript" FOR="Layout1" EVENT="OnLoad"> // Handle HTML Layout control OnLoad event; this occurs for Internet Explorer 3.02 StartupCode() </SCRIPT>In Internet Explorer 4.0 or later:
<SCRIPT LANGUAGE="VBScript" FOR="Window" EVENT="OnLoad"> // Handle window OnLoad event; occurs for Internet Explorer versions 4.0 // or later and 3.02 with later scripting engine versions. StartupCode() </SCRIPT>
%3 %4
Additional query words: Alxport ALX LAYOUT
Keywords: kbinfo kbdownload kbactivedocs kbfile kbsample kbdhtml kbfaq kbcode KB183977