mirror of
https://github.com/HistacomUnity/Histacom2-old.git
synced 2025-01-22 09:02:01 -05:00
ClassicDropDown + ClassicTextBox!
Finally! It only took 2 months...
This commit is contained in:
parent
81cde79fcc
commit
2a473d05a3
13 changed files with 590 additions and 153 deletions
|
@ -54,6 +54,18 @@
|
||||||
<Compile Include="Paintbrush.cs" />
|
<Compile Include="Paintbrush.cs" />
|
||||||
<Compile Include="SaveSystem.cs" />
|
<Compile Include="SaveSystem.cs" />
|
||||||
<Compile Include="TaskBarController.cs" />
|
<Compile Include="TaskBarController.cs" />
|
||||||
|
<Compile Include="Template\DropDownItem.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Template\DropDownItem.Designer.cs">
|
||||||
|
<DependentUpon>DropDownItem.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Template\DropDownOverlay.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Template\DropDownOverlay.Designer.cs">
|
||||||
|
<DependentUpon>DropDownOverlay.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Template\ResizeOverlay.cs">
|
<Compile Include="Template\ResizeOverlay.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -112,7 +124,6 @@
|
||||||
<Compile Include="UI\ClassicTextBox.Designer.cs">
|
<Compile Include="UI\ClassicTextBox.Designer.cs">
|
||||||
<DependentUpon>ClassicTextBox.cs</DependentUpon>
|
<DependentUpon>ClassicTextBox.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="UI\OldClassicTextbox.cs" />
|
|
||||||
<Compile Include="UI\IProgressBar.cs">
|
<Compile Include="UI\IProgressBar.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -130,6 +141,12 @@
|
||||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Template\DropDownItem.resx">
|
||||||
|
<DependentUpon>DropDownItem.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Template\DropDownOverlay.resx">
|
||||||
|
<DependentUpon>DropDownOverlay.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Template\ResizeOverlay.resx">
|
<EmbeddedResource Include="Template\ResizeOverlay.resx">
|
||||||
<DependentUpon>ResizeOverlay.cs</DependentUpon>
|
<DependentUpon>ResizeOverlay.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|
63
Histacom2.Engine/Template/DropDownItem.Designer.cs
generated
Normal file
63
Histacom2.Engine/Template/DropDownItem.Designer.cs
generated
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
namespace Histacom2.Engine.Template
|
||||||
|
{
|
||||||
|
partial class DropDownItem
|
||||||
|
{
|
||||||
|
/// <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.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(315, 20);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "label1";
|
||||||
|
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||||
|
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||||
|
this.label1.MouseEnter += new System.EventHandler(this.label1_MouseEnter);
|
||||||
|
this.label1.MouseLeave += new System.EventHandler(this.label1_MouseLeave);
|
||||||
|
//
|
||||||
|
// DropDownItem
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Name = "DropDownItem";
|
||||||
|
this.Size = new System.Drawing.Size(315, 20);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
}
|
||||||
|
}
|
42
Histacom2.Engine/Template/DropDownItem.cs
Normal file
42
Histacom2.Engine/Template/DropDownItem.cs
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
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.Engine.Template
|
||||||
|
{
|
||||||
|
public partial class DropDownItem : UserControl
|
||||||
|
{
|
||||||
|
public UI.ClassicDropDown dpdw;
|
||||||
|
public DropDownItem()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ChangeText(string newText, Font fnt)
|
||||||
|
{
|
||||||
|
label1.Font = fnt;
|
||||||
|
label1.Text = newText;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label1_MouseLeave(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
label1.BackColor = Color.Transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
dpdw.ChooseItem(label1.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label1_MouseEnter(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
label1.BackColor = Color.Blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
120
Histacom2.Engine/Template/DropDownItem.resx
Normal file
120
Histacom2.Engine/Template/DropDownItem.resx
Normal file
|
@ -0,0 +1,120 @@
|
||||||
|
<?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>
|
||||||
|
</root>
|
64
Histacom2.Engine/Template/DropDownOverlay.Designer.cs
generated
Normal file
64
Histacom2.Engine/Template/DropDownOverlay.Designer.cs
generated
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
namespace Histacom2.Engine.Template
|
||||||
|
{
|
||||||
|
partial class DropDownOverlay
|
||||||
|
{
|
||||||
|
/// <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 Windows Form 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.outline = new System.Windows.Forms.Panel();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// outline
|
||||||
|
//
|
||||||
|
this.outline.BackColor = System.Drawing.Color.White;
|
||||||
|
this.outline.Location = new System.Drawing.Point(230, 56);
|
||||||
|
this.outline.Name = "outline";
|
||||||
|
this.outline.Size = new System.Drawing.Size(200, 100);
|
||||||
|
this.outline.TabIndex = 0;
|
||||||
|
this.outline.Paint += new System.Windows.Forms.PaintEventHandler(this.outline_Paint);
|
||||||
|
//
|
||||||
|
// DropDownOverlay
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(0)))), ((int)(((byte)(1)))));
|
||||||
|
this.ClientSize = new System.Drawing.Size(628, 210);
|
||||||
|
this.Controls.Add(this.outline);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "DropDownOverlay";
|
||||||
|
this.Text = "DropDownOverlay";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.TransparencyKey = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(0)))), ((int)(((byte)(1)))));
|
||||||
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public System.Windows.Forms.Panel outline;
|
||||||
|
}
|
||||||
|
}
|
26
Histacom2.Engine/Template/DropDownOverlay.cs
Normal file
26
Histacom2.Engine/Template/DropDownOverlay.cs
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Histacom2.Engine.Template
|
||||||
|
{
|
||||||
|
public partial class DropDownOverlay : Form
|
||||||
|
{
|
||||||
|
public DropDownOverlay()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void outline_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
e.Graphics.DrawRectangle(Pens.Black, 0, 0, outline.Width - 1, outline.Height - 1); // Draws a 1 pixel border around the dropdown's drop area!
|
||||||
|
if (SaveSystem.currentTheme != null) outline.BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
120
Histacom2.Engine/Template/DropDownOverlay.resx
Normal file
120
Histacom2.Engine/Template/DropDownOverlay.resx
Normal file
|
@ -0,0 +1,120 @@
|
||||||
|
<?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>
|
||||||
|
</root>
|
30
Histacom2.Engine/UI/ClassicDropDown.Designer.cs
generated
30
Histacom2.Engine/UI/ClassicDropDown.Designer.cs
generated
|
@ -29,12 +29,12 @@ protected override void Dispose(bool disposing)
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
this.dropDownSwitch = new System.Windows.Forms.PictureBox();
|
||||||
this.tborder = new System.Windows.Forms.PictureBox();
|
this.tborder = new System.Windows.Forms.PictureBox();
|
||||||
this.bborder = new System.Windows.Forms.PictureBox();
|
this.bborder = new System.Windows.Forms.PictureBox();
|
||||||
this.rborder = new System.Windows.Forms.PictureBox();
|
this.rborder = new System.Windows.Forms.PictureBox();
|
||||||
this.lborder = new System.Windows.Forms.PictureBox();
|
this.lborder = new System.Windows.Forms.PictureBox();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.dropDownSwitch)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.tborder)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.tborder)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.bborder)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.bborder)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.rborder)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.rborder)).BeginInit();
|
||||||
|
@ -50,16 +50,17 @@ private void InitializeComponent()
|
||||||
this.textBox1.Size = new System.Drawing.Size(96, 13);
|
this.textBox1.Size = new System.Drawing.Size(96, 13);
|
||||||
this.textBox1.TabIndex = 9;
|
this.textBox1.TabIndex = 9;
|
||||||
//
|
//
|
||||||
// pictureBox1
|
// dropDownSwitch
|
||||||
//
|
//
|
||||||
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
|
this.dropDownSwitch.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
this.pictureBox1.Image = global::Histacom2.Engine.Properties.Resources.ClassicDropDownButton;
|
this.dropDownSwitch.Image = global::Histacom2.Engine.Properties.Resources.ClassicDropDownButton;
|
||||||
this.pictureBox1.Location = new System.Drawing.Point(82, 2);
|
this.dropDownSwitch.Location = new System.Drawing.Point(82, 2);
|
||||||
this.pictureBox1.Name = "pictureBox1";
|
this.dropDownSwitch.Name = "dropDownSwitch";
|
||||||
this.pictureBox1.Size = new System.Drawing.Size(16, 16);
|
this.dropDownSwitch.Size = new System.Drawing.Size(16, 16);
|
||||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.dropDownSwitch.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
this.pictureBox1.TabIndex = 10;
|
this.dropDownSwitch.TabIndex = 10;
|
||||||
this.pictureBox1.TabStop = false;
|
this.dropDownSwitch.TabStop = false;
|
||||||
|
this.dropDownSwitch.Click += new System.EventHandler(this.dropDownSwitch_Click);
|
||||||
//
|
//
|
||||||
// tborder
|
// tborder
|
||||||
//
|
//
|
||||||
|
@ -101,7 +102,7 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.pictureBox1);
|
this.Controls.Add(this.dropDownSwitch);
|
||||||
this.Controls.Add(this.textBox1);
|
this.Controls.Add(this.textBox1);
|
||||||
this.Controls.Add(this.tborder);
|
this.Controls.Add(this.tborder);
|
||||||
this.Controls.Add(this.bborder);
|
this.Controls.Add(this.bborder);
|
||||||
|
@ -109,7 +110,8 @@ private void InitializeComponent()
|
||||||
this.Controls.Add(this.lborder);
|
this.Controls.Add(this.lborder);
|
||||||
this.Name = "ClassicDropDown";
|
this.Name = "ClassicDropDown";
|
||||||
this.Size = new System.Drawing.Size(100, 20);
|
this.Size = new System.Drawing.Size(100, 20);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
this.Load += new System.EventHandler(this.ClassicDropDown_Load);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dropDownSwitch)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.tborder)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.tborder)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.bborder)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.bborder)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.rborder)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.rborder)).EndInit();
|
||||||
|
@ -126,6 +128,6 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.PictureBox bborder;
|
private System.Windows.Forms.PictureBox bborder;
|
||||||
private System.Windows.Forms.PictureBox rborder;
|
private System.Windows.Forms.PictureBox rborder;
|
||||||
private System.Windows.Forms.PictureBox lborder;
|
private System.Windows.Forms.PictureBox lborder;
|
||||||
private System.Windows.Forms.PictureBox pictureBox1;
|
private System.Windows.Forms.PictureBox dropDownSwitch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,22 +7,28 @@
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using Histacom2.Engine.Template;
|
||||||
|
|
||||||
namespace Histacom2.Engine.UI
|
namespace Histacom2.Engine.UI
|
||||||
{
|
{
|
||||||
public partial class ClassicDropDown : UserControl
|
public partial class ClassicDropDown : UserControl
|
||||||
{
|
{
|
||||||
|
public DropDownOverlay thisOverlay = new DropDownOverlay();
|
||||||
public bool UseSystemPasswordChar { get; set; }
|
public bool UseSystemPasswordChar { get; set; }
|
||||||
|
public bool dropDownShown;
|
||||||
|
|
||||||
public static Color textboxcolor = Color.Black;
|
public static Color textboxcolor = Color.Black;
|
||||||
|
|
||||||
public static Color _lightBack = Color.Silver;
|
public static Color _lightBack = Color.Silver;
|
||||||
public static Color _darkBack = Color.Silver;
|
public static Color _darkBack = Color.Silver;
|
||||||
|
|
||||||
|
public List<string> items = new List<string> { "TestItem" };
|
||||||
|
|
||||||
public ClassicDropDown()
|
public ClassicDropDown()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Draw the border
|
// Draw the border
|
||||||
|
@ -30,20 +36,26 @@ public ClassicDropDown()
|
||||||
this.Paint += new PaintEventHandler((object sender, PaintEventArgs e) =>
|
this.Paint += new PaintEventHandler((object sender, PaintEventArgs e) =>
|
||||||
{
|
{
|
||||||
// Update a bunch of variables!
|
// Update a bunch of variables!
|
||||||
textBox1.Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular);
|
textBox1.Font = Font;
|
||||||
|
|
||||||
if (SaveSystem.currentTheme != null) textBox1.BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
|
||||||
else textBox1.BackColor = Color.White;
|
|
||||||
|
|
||||||
if (SaveSystem.currentTheme != null)
|
if (SaveSystem.currentTheme != null)
|
||||||
{
|
{
|
||||||
|
textBox1.BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
||||||
|
BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
||||||
|
|
||||||
textboxcolor = SaveSystem.currentTheme.windowColor;
|
textboxcolor = SaveSystem.currentTheme.windowColor;
|
||||||
|
|
||||||
_lightBack = Paintbrush.GetLightFromColor(textboxcolor);
|
_lightBack = Paintbrush.GetLightFromColor(textboxcolor);
|
||||||
_darkBack = Paintbrush.GetDarkFromColor(textboxcolor);
|
_darkBack = Paintbrush.GetDarkFromColor(textboxcolor);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
textBox1.BackColor = Color.White;
|
||||||
|
BackColor = Color.White;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tborder.Paint += new PaintEventHandler((object sender, PaintEventArgs e) =>
|
tborder.Paint += new PaintEventHandler((object sender, PaintEventArgs e) =>
|
||||||
{
|
{
|
||||||
|
@ -77,5 +89,67 @@ public ClassicDropDown()
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ChooseItem(string str)
|
||||||
|
{
|
||||||
|
textBox1.Text = str;
|
||||||
|
ShowHideDropDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShowHideDropDown()
|
||||||
|
{
|
||||||
|
if (dropDownShown)
|
||||||
|
{
|
||||||
|
thisOverlay.Close();
|
||||||
|
dropDownShown = false;
|
||||||
|
} else {
|
||||||
|
thisOverlay = new DropDownOverlay();
|
||||||
|
int applyHeight = 0;
|
||||||
|
foreach (string str in items)
|
||||||
|
{
|
||||||
|
DropDownItem itm = new DropDownItem();
|
||||||
|
itm.ChangeText(str, Font);
|
||||||
|
itm.dpdw = this;
|
||||||
|
itm.Dock = DockStyle.Top;
|
||||||
|
applyHeight += itm.Height;
|
||||||
|
thisOverlay.outline.Controls.Add(itm);
|
||||||
|
}
|
||||||
|
thisOverlay.outline.Location = this.PointToScreen(Point.Empty);
|
||||||
|
thisOverlay.outline.Top += this.Height;
|
||||||
|
thisOverlay.outline.Size = new Size(this.Width, applyHeight);
|
||||||
|
|
||||||
|
thisOverlay.Deactivate += (sender2, e2) => { thisOverlay.Close(); dropDownShown = false; };
|
||||||
|
|
||||||
|
thisOverlay.Show();
|
||||||
|
dropDownShown = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void dropDownSwitch_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ShowHideDropDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ClassicDropDown_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
((Form)this.TopLevelControl).FormClosed += (sender2, e2) => { thisOverlay.Close(); };
|
||||||
|
((Form)this.TopLevelControl).Resize += (sender2, e2) =>
|
||||||
|
{
|
||||||
|
thisOverlay.outline.Location = this.PointToScreen(Point.Empty);
|
||||||
|
thisOverlay.outline.Top += this.Height;
|
||||||
|
thisOverlay.BringToFront();
|
||||||
|
};
|
||||||
|
|
||||||
|
((Form)this.TopLevelControl).Move += (sender2, e2) =>
|
||||||
|
{
|
||||||
|
thisOverlay.outline.Location = this.PointToScreen(Point.Empty);
|
||||||
|
thisOverlay.outline.Top += this.Height;
|
||||||
|
thisOverlay.BringToFront();
|
||||||
|
};
|
||||||
|
} catch { }
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,16 @@ public ClassicTextBox()
|
||||||
// Update a bunch of variables!
|
// Update a bunch of variables!
|
||||||
textBox1.Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular);
|
textBox1.Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular);
|
||||||
|
|
||||||
if (SaveSystem.currentTheme != null) textBox1.BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
if (SaveSystem.currentTheme != null)
|
||||||
else textBox1.BackColor = Color.White;
|
{
|
||||||
|
textBox1.BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
||||||
|
BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
textBox1.BackColor = Color.White;
|
||||||
|
BackColor = Color.White;
|
||||||
|
}
|
||||||
|
|
||||||
if (SaveSystem.currentTheme != null)
|
if (SaveSystem.currentTheme != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,77 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace Histacom2.Engine.UI
|
|
||||||
{
|
|
||||||
//public class OldClassicTextbox : Control
|
|
||||||
//{
|
|
||||||
// private System.ComponentModel.IContainer components = null;
|
|
||||||
// public TextBox tb = new TextBox();
|
|
||||||
// public bool UseSystemPasswordChar { get; set; }
|
|
||||||
|
|
||||||
// public ClassicTextbox() : base()
|
|
||||||
// {
|
|
||||||
// // A bunch of designer stuff!
|
|
||||||
// this.components = new System.ComponentModel.Container();
|
|
||||||
// this.SuspendLayout();
|
|
||||||
|
|
||||||
// if (SaveSystem.currentTheme != null) Font = SaveSystem.currentTheme.buttonFont;
|
|
||||||
// else Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular);
|
|
||||||
|
|
||||||
// tb.Name = "mainText";
|
|
||||||
// tb.Location = new Point(3, 3);
|
|
||||||
// tb.Size = new Size(Size.Width - 6, Size.Height - 6);
|
|
||||||
// tb.BorderStyle = BorderStyle.None;
|
|
||||||
// Controls.Add(tb);
|
|
||||||
|
|
||||||
// this.ResumeLayout(false);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// protected override void Dispose(bool disposing)
|
|
||||||
// {
|
|
||||||
// if (disposing && (components != null))
|
|
||||||
// {
|
|
||||||
// components.Dispose();
|
|
||||||
// }
|
|
||||||
// base.Dispose(disposing);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// protected override void OnPaint(PaintEventArgs e)
|
|
||||||
// {
|
|
||||||
|
|
||||||
// var textboxcolor = Color.Silver;
|
|
||||||
// if (SaveSystem.currentTheme != null) textboxcolor = SaveSystem.currentTheme.windowColor;
|
|
||||||
|
|
||||||
// if (SaveSystem.currentTheme != null) BackColor = SaveSystem.currentTheme.threeDObjectsColor;
|
|
||||||
// else BackColor = Color.White;
|
|
||||||
|
|
||||||
// var _lightBack = Paintbrush.GetLightFromColor(textboxcolor);
|
|
||||||
// var _darkBack = Paintbrush.GetDarkFromColor(textboxcolor);
|
|
||||||
|
|
||||||
// if (SaveSystem.currentTheme != null) Font = SaveSystem.currentTheme.buttonFont;
|
|
||||||
// else Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular);
|
|
||||||
|
|
||||||
// var g = e.Graphics;
|
|
||||||
// g.Clear(BackColor);
|
|
||||||
|
|
||||||
// g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
|
|
||||||
// if (UseSystemPasswordChar) g.DrawString(new string('●', Text.Length), Font, Brushes.Black, 3, 3);
|
|
||||||
// else g.DrawString(Text, Font, Brushes.Black, 3, 3);
|
|
||||||
|
|
||||||
// g.DrawLine(new Pen(_darkBack), 0, 0, Width - 2, 0);
|
|
||||||
// g.DrawLine(new Pen(_lightBack), Width - 1, 0, Width - 1, Height - 1);
|
|
||||||
// g.DrawLine(new Pen(_lightBack), 0, Height - 1, Width - 1, Height - 1);
|
|
||||||
// g.DrawLine(new Pen(_darkBack), 0, 0, 0, Height - 2);
|
|
||||||
// g.DrawLine(Pens.Black, 1, 1, Width - 3, 1);
|
|
||||||
// g.DrawLine(Pens.Black, 1, 1, 1, Height - 3);
|
|
||||||
// g.DrawLine(new Pen(textboxcolor), 1, Height - 2, Width - 2, Height - 2);
|
|
||||||
// g.DrawLine(new Pen(textboxcolor), Width - 2, Height - 2, Width - 2, 1);
|
|
||||||
|
|
||||||
// base.OnPaint(e);
|
|
||||||
// }
|
|
||||||
}
|
|
|
@ -51,17 +51,15 @@ private void InitializeComponent()
|
||||||
this.HelpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
this.HelpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.AboutWindows95ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.AboutWindows95ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.toprightcorner = new System.Windows.Forms.Panel();
|
this.toprightcorner = new System.Windows.Forms.Panel();
|
||||||
this.bottomrightcorner = new System.Windows.Forms.Panel();
|
|
||||||
this.bottomleftcorner = new System.Windows.Forms.Panel();
|
|
||||||
this.topleftcorner = new System.Windows.Forms.Panel();
|
this.topleftcorner = new System.Windows.Forms.Panel();
|
||||||
this.pnlSave = new System.Windows.Forms.Panel();
|
this.pnlSave = new System.Windows.Forms.Panel();
|
||||||
this.classicDropDown1 = new Histacom2.Engine.UI.ClassicDropDown();
|
this.cmbType = new Histacom2.Engine.UI.ClassicDropDown();
|
||||||
this.txtSave = new Histacom2.Engine.UI.ClassicTextBox();
|
this.txtSave = new Histacom2.Engine.UI.ClassicTextBox();
|
||||||
this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel();
|
this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel();
|
||||||
this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel();
|
this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel();
|
||||||
this.classicButton1 = new Histacom2.Engine.UI.ClassicButton();
|
|
||||||
this.btnSave = new Histacom2.Engine.UI.ClassicButton();
|
this.btnSave = new Histacom2.Engine.UI.ClassicButton();
|
||||||
this.refresh = new System.Windows.Forms.Timer(this.components);
|
this.refresh = new System.Windows.Forms.Timer(this.components);
|
||||||
|
this.btnCanc = new Histacom2.Engine.UI.ClassicButton();
|
||||||
this.program.SuspendLayout();
|
this.program.SuspendLayout();
|
||||||
this.MenuStrip1.SuspendLayout();
|
this.MenuStrip1.SuspendLayout();
|
||||||
this.pnlSave.SuspendLayout();
|
this.pnlSave.SuspendLayout();
|
||||||
|
@ -74,8 +72,6 @@ private void InitializeComponent()
|
||||||
this.program.Controls.Add(this.diskView);
|
this.program.Controls.Add(this.diskView);
|
||||||
this.program.Controls.Add(this.MenuStrip1);
|
this.program.Controls.Add(this.MenuStrip1);
|
||||||
this.program.Controls.Add(this.toprightcorner);
|
this.program.Controls.Add(this.toprightcorner);
|
||||||
this.program.Controls.Add(this.bottomrightcorner);
|
|
||||||
this.program.Controls.Add(this.bottomleftcorner);
|
|
||||||
this.program.Controls.Add(this.topleftcorner);
|
this.program.Controls.Add(this.topleftcorner);
|
||||||
this.program.Controls.Add(this.pnlSave);
|
this.program.Controls.Add(this.pnlSave);
|
||||||
this.program.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.program.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
@ -258,23 +254,6 @@ private void InitializeComponent()
|
||||||
this.toprightcorner.Size = new System.Drawing.Size(4, 4);
|
this.toprightcorner.Size = new System.Drawing.Size(4, 4);
|
||||||
this.toprightcorner.TabIndex = 6;
|
this.toprightcorner.TabIndex = 6;
|
||||||
//
|
//
|
||||||
// bottomrightcorner
|
|
||||||
//
|
|
||||||
this.bottomrightcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.bottomrightcorner.Cursor = System.Windows.Forms.Cursors.SizeNWSE;
|
|
||||||
this.bottomrightcorner.Location = new System.Drawing.Point(700, 513);
|
|
||||||
this.bottomrightcorner.Name = "bottomrightcorner";
|
|
||||||
this.bottomrightcorner.Size = new System.Drawing.Size(4, 4);
|
|
||||||
this.bottomrightcorner.TabIndex = 4;
|
|
||||||
//
|
|
||||||
// bottomleftcorner
|
|
||||||
//
|
|
||||||
this.bottomleftcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.bottomleftcorner.Location = new System.Drawing.Point(0, 513);
|
|
||||||
this.bottomleftcorner.Name = "bottomleftcorner";
|
|
||||||
this.bottomleftcorner.Size = new System.Drawing.Size(4, 4);
|
|
||||||
this.bottomleftcorner.TabIndex = 2;
|
|
||||||
//
|
|
||||||
// topleftcorner
|
// topleftcorner
|
||||||
//
|
//
|
||||||
this.topleftcorner.Location = new System.Drawing.Point(0, 0);
|
this.topleftcorner.Location = new System.Drawing.Point(0, 0);
|
||||||
|
@ -284,11 +263,11 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
// pnlSave
|
// pnlSave
|
||||||
//
|
//
|
||||||
this.pnlSave.Controls.Add(this.classicDropDown1);
|
this.pnlSave.Controls.Add(this.btnCanc);
|
||||||
|
this.pnlSave.Controls.Add(this.cmbType);
|
||||||
this.pnlSave.Controls.Add(this.txtSave);
|
this.pnlSave.Controls.Add(this.txtSave);
|
||||||
this.pnlSave.Controls.Add(this.classicLabel2);
|
this.pnlSave.Controls.Add(this.classicLabel2);
|
||||||
this.pnlSave.Controls.Add(this.classicLabel1);
|
this.pnlSave.Controls.Add(this.classicLabel1);
|
||||||
this.pnlSave.Controls.Add(this.classicButton1);
|
|
||||||
this.pnlSave.Controls.Add(this.btnSave);
|
this.pnlSave.Controls.Add(this.btnSave);
|
||||||
this.pnlSave.Dock = System.Windows.Forms.DockStyle.Bottom;
|
this.pnlSave.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
this.pnlSave.Location = new System.Drawing.Point(0, 463);
|
this.pnlSave.Location = new System.Drawing.Point(0, 463);
|
||||||
|
@ -297,16 +276,15 @@ private void InitializeComponent()
|
||||||
this.pnlSave.TabIndex = 18;
|
this.pnlSave.TabIndex = 18;
|
||||||
this.pnlSave.Visible = false;
|
this.pnlSave.Visible = false;
|
||||||
//
|
//
|
||||||
// classicDropDown1
|
// cmbType
|
||||||
//
|
//
|
||||||
this.classicDropDown1.BackColor = System.Drawing.Color.White;
|
this.cmbType.BackColor = System.Drawing.Color.White;
|
||||||
this.classicDropDown1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
this.cmbType.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||||
this.classicDropDown1.Location = new System.Drawing.Point(56, 31);
|
this.cmbType.Location = new System.Drawing.Point(56, 31);
|
||||||
this.classicDropDown1.Name = "classicDropDown1";
|
this.cmbType.Name = "cmbType";
|
||||||
this.classicDropDown1.Size = new System.Drawing.Size(549, 20);
|
this.cmbType.Size = new System.Drawing.Size(549, 20);
|
||||||
this.classicDropDown1.TabIndex = 23;
|
this.cmbType.TabIndex = 23;
|
||||||
this.classicDropDown1.Text = "classicDropDown1";
|
this.cmbType.UseSystemPasswordChar = false;
|
||||||
this.classicDropDown1.UseSystemPasswordChar = false;
|
|
||||||
//
|
//
|
||||||
// txtSave
|
// txtSave
|
||||||
//
|
//
|
||||||
|
@ -316,7 +294,7 @@ private void InitializeComponent()
|
||||||
this.txtSave.BackColor = System.Drawing.Color.White;
|
this.txtSave.BackColor = System.Drawing.Color.White;
|
||||||
this.txtSave.Location = new System.Drawing.Point(56, 6);
|
this.txtSave.Location = new System.Drawing.Point(56, 6);
|
||||||
this.txtSave.Name = "txtSave";
|
this.txtSave.Name = "txtSave";
|
||||||
this.txtSave.Size = new System.Drawing.Size(549, 17);
|
this.txtSave.Size = new System.Drawing.Size(549, 20);
|
||||||
this.txtSave.TabIndex = 22;
|
this.txtSave.TabIndex = 22;
|
||||||
this.txtSave.UseSystemPasswordChar = false;
|
this.txtSave.UseSystemPasswordChar = false;
|
||||||
//
|
//
|
||||||
|
@ -338,27 +316,12 @@ private void InitializeComponent()
|
||||||
this.classicLabel1.TabIndex = 19;
|
this.classicLabel1.TabIndex = 19;
|
||||||
this.classicLabel1.Text = "File name:";
|
this.classicLabel1.Text = "File name:";
|
||||||
//
|
//
|
||||||
// classicButton1
|
|
||||||
//
|
|
||||||
this.classicButton1.AdaptBackColorWithTheme = true;
|
|
||||||
this.classicButton1.AdaptFontWithTheme = true;
|
|
||||||
this.classicButton1.AdaptForeColorWithTheme = true;
|
|
||||||
this.classicButton1.BackColor = System.Drawing.Color.Silver;
|
|
||||||
this.classicButton1.DialogResult = System.Windows.Forms.DialogResult.None;
|
|
||||||
this.classicButton1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
|
||||||
this.classicButton1.ForeColor = System.Drawing.Color.Black;
|
|
||||||
this.classicButton1.Location = new System.Drawing.Point(611, 29);
|
|
||||||
this.classicButton1.Name = "classicButton1";
|
|
||||||
this.classicButton1.Size = new System.Drawing.Size(75, 23);
|
|
||||||
this.classicButton1.TabIndex = 17;
|
|
||||||
this.classicButton1.Text = "Cancel";
|
|
||||||
this.classicButton1.Click += new System.EventHandler(this.btnSave_Click);
|
|
||||||
//
|
|
||||||
// btnSave
|
// btnSave
|
||||||
//
|
//
|
||||||
this.btnSave.AdaptBackColorWithTheme = true;
|
this.btnSave.AdaptBackColorWithTheme = true;
|
||||||
this.btnSave.AdaptFontWithTheme = true;
|
this.btnSave.AdaptFontWithTheme = true;
|
||||||
this.btnSave.AdaptForeColorWithTheme = true;
|
this.btnSave.AdaptForeColorWithTheme = true;
|
||||||
|
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnSave.BackColor = System.Drawing.Color.Silver;
|
this.btnSave.BackColor = System.Drawing.Color.Silver;
|
||||||
this.btnSave.DialogResult = System.Windows.Forms.DialogResult.None;
|
this.btnSave.DialogResult = System.Windows.Forms.DialogResult.None;
|
||||||
this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||||
|
@ -375,6 +338,21 @@ private void InitializeComponent()
|
||||||
this.refresh.Interval = 15000;
|
this.refresh.Interval = 15000;
|
||||||
this.refresh.Tick += new System.EventHandler(this.refresh_Tick);
|
this.refresh.Tick += new System.EventHandler(this.refresh_Tick);
|
||||||
//
|
//
|
||||||
|
// btnCanc
|
||||||
|
//
|
||||||
|
this.btnCanc.AdaptBackColorWithTheme = true;
|
||||||
|
this.btnCanc.AdaptFontWithTheme = true;
|
||||||
|
this.btnCanc.AdaptForeColorWithTheme = true;
|
||||||
|
this.btnCanc.BackColor = System.Drawing.Color.Silver;
|
||||||
|
this.btnCanc.DialogResult = System.Windows.Forms.DialogResult.None;
|
||||||
|
this.btnCanc.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||||
|
this.btnCanc.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.btnCanc.Location = new System.Drawing.Point(611, 27);
|
||||||
|
this.btnCanc.Name = "btnCanc";
|
||||||
|
this.btnCanc.Size = new System.Drawing.Size(75, 25);
|
||||||
|
this.btnCanc.TabIndex = 24;
|
||||||
|
this.btnCanc.Text = "Cancel";
|
||||||
|
//
|
||||||
// Win95WindowsExplorer
|
// Win95WindowsExplorer
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
@ -415,17 +393,15 @@ private void InitializeComponent()
|
||||||
internal System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem1;
|
internal System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem1;
|
||||||
internal System.Windows.Forms.ToolStripMenuItem AboutWindows95ToolStripMenuItem;
|
internal System.Windows.Forms.ToolStripMenuItem AboutWindows95ToolStripMenuItem;
|
||||||
internal System.Windows.Forms.Panel toprightcorner;
|
internal System.Windows.Forms.Panel toprightcorner;
|
||||||
internal System.Windows.Forms.Panel bottomrightcorner;
|
|
||||||
internal System.Windows.Forms.Panel bottomleftcorner;
|
|
||||||
internal System.Windows.Forms.Panel topleftcorner;
|
internal System.Windows.Forms.Panel topleftcorner;
|
||||||
internal System.Windows.Forms.ListView mainView;
|
internal System.Windows.Forms.ListView mainView;
|
||||||
internal System.Windows.Forms.Panel pnlSave;
|
internal System.Windows.Forms.Panel pnlSave;
|
||||||
private System.Windows.Forms.Timer refresh;
|
private System.Windows.Forms.Timer refresh;
|
||||||
private Engine.UI.ClassicButton btnSave;
|
private Engine.UI.ClassicButton btnSave;
|
||||||
private Engine.UI.ClassicButton classicButton1;
|
|
||||||
private Engine.UI.ClassicLabel classicLabel2;
|
private Engine.UI.ClassicLabel classicLabel2;
|
||||||
private Engine.UI.ClassicLabel classicLabel1;
|
private Engine.UI.ClassicLabel classicLabel1;
|
||||||
private Engine.UI.ClassicTextBox txtSave;
|
private Engine.UI.ClassicTextBox txtSave;
|
||||||
private Engine.UI.ClassicDropDown classicDropDown1;
|
private Engine.UI.ClassicDropDown cmbType;
|
||||||
|
private Engine.UI.ClassicButton btnCanc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,8 @@ public Win95WindowsExplorer()
|
||||||
ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
|
ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
txtSave.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
cmbType.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
|
||||||
//Histacom2.Engine.UI.CustomTextBox ctb = new Histacom2.Engine.UI.CustomTextBox(textBox1);
|
//Histacom2.Engine.UI.CustomTextBox ctb = new Histacom2.Engine.UI.CustomTextBox(textBox1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue