IE4 is back, but not complete

This commit is contained in:
lempamo 2017-09-18 17:34:22 -04:00
parent ca48236671
commit f32c07b6dc
24 changed files with 1811 additions and 45 deletions

View file

@ -340,7 +340,7 @@ private void InitializeComponent()
this.Button24.AdaptFontWithTheme = false;
this.Button24.AdaptForeColorWithTheme = false;
this.Button24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.Button24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Button24.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Button24.ForeColor = System.Drawing.Color.MidnightBlue;
this.Button24.Location = new System.Drawing.Point(223, 139);
this.Button24.Name = "Button24";

View file

@ -144,35 +144,35 @@
<Compile Include="OS\Win95\Win95Apps\GuessTheNumber.Designer.cs">
<DependentUpon>GuessTheNumber.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\12padams1998.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\12padams1998.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\12padams1998.Designer.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\12padams1998.Designer.cs">
<DependentUpon>12padams1998.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\GoogleHome.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\GoogleHome.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\GoogleHome.Designer.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\GoogleHome.Designer.cs">
<DependentUpon>GoogleHome.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\GooglePrototype.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\GooglePrototype.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\GooglePrototype.Designer.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\GooglePrototype.Designer.cs">
<DependentUpon>GooglePrototype.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\IE4NoPage.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\IENoPage.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\IE4NoPage.Designer.cs">
<DependentUpon>IE4NoPage.cs</DependentUpon>
<Compile Include="OS\Win95\Win95Apps\IE3Sites\IENoPage.Designer.cs">
<DependentUpon>IENoPage.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\IE4Start.cs">
<Compile Include="OS\Win95\Win95Apps\IE3Sites\IE3Start.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95Apps\IE4Sites\IE4Start.Designer.cs">
<DependentUpon>IE4Start.cs</DependentUpon>
<Compile Include="OS\Win95\Win95Apps\IE3Sites\IE3Start.Designer.cs">
<DependentUpon>IE3Start.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\MineSweeper\CustomMinefield.cs">
<SubType>UserControl</SubType>
@ -256,6 +256,18 @@
<Compile Include="OS\Win98\Win98.Designer.cs">
<DependentUpon>Win98.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win98\Win98Apps\IE4Sites\IENoPage.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win98\Win98Apps\IE4Sites\IENoPage.Designer.cs">
<DependentUpon>IENoPage.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win98\Win98Apps\WinClassicIE4.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win98\Win98Apps\WinClassicIE4.Designer.cs">
<DependentUpon>WinClassicIE4.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win98\Win98Apps\WinClassicWindowsExplorer.cs">
<SubType>UserControl</SubType>
</Compile>
@ -371,21 +383,21 @@
<EmbeddedResource Include="OS\Win95\Win95Apps\GuessTheNumber.resx">
<DependentUpon>GuessTheNumber.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\IE4Sites\12padams1998.resx">
<EmbeddedResource Include="OS\Win95\Win95Apps\IE3Sites\12padams1998.resx">
<DependentUpon>12padams1998.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\IE4Sites\GoogleHome.resx">
<EmbeddedResource Include="OS\Win95\Win95Apps\IE3Sites\GoogleHome.resx">
<DependentUpon>GoogleHome.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\IE4Sites\GooglePrototype.resx">
<EmbeddedResource Include="OS\Win95\Win95Apps\IE3Sites\GooglePrototype.resx">
<DependentUpon>GooglePrototype.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\IE4Sites\IE4NoPage.resx">
<DependentUpon>IE4NoPage.cs</DependentUpon>
<EmbeddedResource Include="OS\Win95\Win95Apps\IE3Sites\IENoPage.resx">
<DependentUpon>IENoPage.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\IE4Sites\IE4Start.resx">
<DependentUpon>IE4Start.cs</DependentUpon>
<EmbeddedResource Include="OS\Win95\Win95Apps\IE3Sites\IE3Start.resx">
<DependentUpon>IE3Start.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95Apps\MineSweeper\CustomMinefield.resx">
<DependentUpon>CustomMinefield.cs</DependentUpon>
@ -428,6 +440,10 @@
<DependentUpon>Win98.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win98\Win98Apps\IE4Sites\IENoPage.resx">
<DependentUpon>IENoPage.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win98\Win98Apps\WinClassicWindowsExplorer.resx">
<DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon>
<SubType>Designer</SubType>

View file

@ -1,4 +1,4 @@
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
partial class _12padams1998
{

View file

@ -10,7 +10,7 @@
using Histacom2.Engine;
using System.Threading;
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
public partial class _12padams1998 : UserControl
{

View file

@ -1,4 +1,4 @@
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
partial class GoogleHome
{

View file

@ -8,7 +8,7 @@
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
public partial class GoogleHome : UserControl
{

View file

@ -1,4 +1,4 @@
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
partial class GooglePrototype
{

View file

@ -8,7 +8,7 @@
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
public partial class GooglePrototype : UserControl
{

View file

@ -1,6 +1,6 @@
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
partial class IE4Start
partial class IE3Start
{
/// <summary>
/// Required designer variable.
@ -71,7 +71,7 @@ private void InitializeComponent()
this.linkLabel2.Text = " ";
this.linkLabel2.Click += new System.EventHandler(this.linkLabel2_Click);
//
// IE4Start
// IE3Start
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@ -79,7 +79,7 @@ private void InitializeComponent()
this.Controls.Add(this.linkLabel2);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.pictureBox1);
this.Name = "IE4Start";
this.Name = "IE3Start";
this.Size = new System.Drawing.Size(959, 483);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);

View file

@ -8,11 +8,11 @@
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
public partial class IE4Start : UserControl
public partial class IE3Start : UserControl
{
public IE4Start()
public IE3Start()
{
InitializeComponent();
}

View file

@ -1,6 +1,6 @@
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
partial class IE4NoPage
partial class IENoPage
{
/// <summary>
/// Required designer variable.
@ -41,13 +41,13 @@ private void InitializeComponent()
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// IE4NoPage
// IENoPage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.pictureBox1);
this.Name = "IE4NoPage";
this.Name = "IENoPage";
this.Size = new System.Drawing.Size(959, 541);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);

View file

@ -8,11 +8,11 @@
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Histacom2.OS.Win95.Win95Apps.IE4Sites
namespace Histacom2.OS.Win95.Win95Apps.IE3Sites
{
public partial class IE4NoPage : UserControl
public partial class IENoPage : UserControl
{
public IE4NoPage()
public IENoPage()
{
InitializeComponent();
}

View file

@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Histacom2.OS.Win95.Win95Apps.IE4Sites;
using Histacom2.OS.Win95.Win95Apps.IE3Sites;
namespace Histacom2.OS.Win95.Win95Apps
{
@ -39,7 +39,7 @@ public static async void GoToPage(string url)
switch (url)
{
case "www.microsoft.com/windows/ie/default.htm":
uc = new IE4Start();
uc = new IE3Start();
break;
case "www.google.com":
uc = new GoogleHome();
@ -51,7 +51,7 @@ public static async void GoToPage(string url)
uc = new _12padams1998();
break;
default:
uc = new IE4NoPage();
uc = new IENoPage();
break;
}

View file

@ -10,6 +10,8 @@
using Histacom2.OS.Win95.Win95Apps;
using Histacom2.OS.Win95.Win95Apps.Story;
using static Histacom2.Engine.SaveSystem;
using Histacom2.OS.Win98.Win98Apps;
namespace Histacom2.OS.Win98
{
public partial class Windows98 : Form
@ -242,7 +244,7 @@ private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
{
if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; }
ie = wm.Init(new WinClassicIE3(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
ie = wm.Init(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
ie.BringToFront();
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
@ -262,7 +264,7 @@ private void desktopicons_DoubleClick(object sender, EventArgs e)
if (objListViewItem.Text == "Internet Explorer")
{
if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; }
ie = wm.Init(new WinClassicIE3(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
ie = wm.Init(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
ie.BringToFront();
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);

View file

@ -0,0 +1,61 @@
namespace Histacom2.OS.Win98.Win98Apps.IE4Sites
{
partial class IENoPage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Image = global::Histacom2.Properties.Resources.nopage;
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(406, 538);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// IENoPage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.pictureBox1);
this.Name = "IENoPage";
this.Size = new System.Drawing.Size(959, 541);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
}
}

View file

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Histacom2.OS.Win98.Win98Apps.IE4Sites
{
public partial class IENoPage : UserControl
{
public IENoPage()
{
InitializeComponent();
}
}
}

View file

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="string1" xml:space="preserve">
<value>testy</value>
</data>
</root>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,76 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Histacom2.OS.Win98.Win98Apps.IE4Sites;
namespace Histacom2.OS.Win98.Win98Apps
{
public partial class WinClassicIE4 : UserControl
{
public static Panel browsingArea = new Panel();
public static ComboBox addressbar = new ComboBox();
public WinClassicIE4()
{
InitializeComponent();
browsingArea = _browsingArea;
addressbar = _addressbar;
}
public static async void GoToPage(string url)
{
UserControl uc = new UserControl();
switch (url)
{
/*case "www.microsoft.com/windows/ie/default.htm":
uc = new IE4Start();
break;
case "www.google.com":
uc = new GoogleHome();
break;
case "www.12padams.com":
uc = new _12padams1998();
break;*/
default:
uc = new IENoPage();
break;
}
addressbar.Text = url;
uc.Dock = DockStyle.Fill;
await Task.Delay(new Random().Next(500, 1500));
browsingArea.Controls.Clear();
browsingArea.Controls.Add(uc);
}
private void TempIE4_Load(object sender, EventArgs e)
{
GoToPage("www.microsoft.com/windows/ie/default.htm");
GoButton.Paint += (s, args) => Engine.Paintbrush.PaintClassicBorders(s, args, 2);
}
private void GoButton_Click(object sender, EventArgs e)
{
GoToPage(addressbar.Text);
}
private void _addressbar_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
GoButton_Click(this, new EventArgs());
e.SuppressKeyPress = true;
browsingArea.Focus();
}
}
}
}