mirror of
https://github.com/seriocomedy/ShiftOS-C-.git
synced 2025-01-23 09:32:14 +00:00
f1856e8ed3
This glitch has been prevelant ever since ShiftOS first had Knowledge Input. And I don't mean 0.1.0, I mean all the way back before 0.0.5 when OSFirstTimer was developing it. Basically, buttons would show light gray backgrounds when you click on them. Now they show black (and it's skinnable :D)
181 lines
No EOL
8.8 KiB
C#
181 lines
No EOL
8.8 KiB
C#
using System;
|
|
using ShiftUI;
|
|
|
|
namespace ShiftOS
|
|
{
|
|
partial class TextPad
|
|
{
|
|
/// <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);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
this.pgcontents = new ShiftUI.Panel();
|
|
this.txtuserinput = new ShiftUI.TextBox();
|
|
this.pnlbreak = new ShiftUI.Panel();
|
|
this.pnloptions = new ShiftUI.Panel();
|
|
this.btnsave = new ShiftUI.Button();
|
|
this.btnopen = new ShiftUI.Button();
|
|
this.btnnew = new ShiftUI.Button();
|
|
this.tmrcodepointcooldown = new ShiftUI.Timer(this.components);
|
|
this.tmrshowearnedcodepoints = new ShiftUI.Timer(this.components);
|
|
this.pgcontents.SuspendLayout();
|
|
this.pnloptions.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// pgcontents
|
|
//
|
|
this.pgcontents.Widgets.Add(this.txtuserinput);
|
|
this.pgcontents.Widgets.Add(this.pnlbreak);
|
|
this.pgcontents.Widgets.Add(this.pnloptions);
|
|
this.pgcontents.Dock = ShiftUI.DockStyle.Fill;
|
|
this.pgcontents.Location = new System.Drawing.Point(0, 0);
|
|
this.pgcontents.Name = "pgcontents";
|
|
this.pgcontents.Size = new System.Drawing.Size(530, 330);
|
|
this.pgcontents.TabIndex = 20;
|
|
//
|
|
// txtuserinput
|
|
//
|
|
this.txtuserinput.Anchor = ((ShiftUI.AnchorStyles)((((ShiftUI.AnchorStyles.Top | ShiftUI.AnchorStyles.Bottom)
|
|
| ShiftUI.AnchorStyles.Left)
|
|
| ShiftUI.AnchorStyles.Right)));
|
|
this.txtuserinput.BackColor = System.Drawing.Color.White;
|
|
this.txtuserinput.BorderStyle = ShiftUI.BorderStyle.None;
|
|
this.txtuserinput.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.txtuserinput.ForeColor = System.Drawing.Color.Black;
|
|
this.txtuserinput.Location = new System.Drawing.Point(4, 2);
|
|
this.txtuserinput.Multiline = true;
|
|
this.txtuserinput.Name = "txtuserinput";
|
|
this.txtuserinput.ScrollBars = ShiftUI.ScrollBars.Vertical;
|
|
this.txtuserinput.Size = new System.Drawing.Size(528, 272);
|
|
this.txtuserinput.TabIndex = 0;
|
|
//
|
|
// pnlbreak
|
|
//
|
|
this.pnlbreak.BackColor = System.Drawing.Color.White;
|
|
this.pnlbreak.BackgroundImage = global::ShiftOS.Properties.Resources.uparrow;
|
|
this.pnlbreak.BackgroundImageLayout = ShiftUI.ImageLayout.Center;
|
|
this.pnlbreak.Dock = ShiftUI.DockStyle.Bottom;
|
|
this.pnlbreak.ForeColor = System.Drawing.Color.Black;
|
|
this.pnlbreak.Location = new System.Drawing.Point(0, 277);
|
|
this.pnlbreak.Name = "pnlbreak";
|
|
this.pnlbreak.Size = new System.Drawing.Size(530, 15);
|
|
this.pnlbreak.TabIndex = 2;
|
|
//
|
|
// pnloptions
|
|
//
|
|
this.pnloptions.BackColor = System.Drawing.Color.White;
|
|
this.pnloptions.Widgets.Add(this.btnsave);
|
|
this.pnloptions.Widgets.Add(this.btnopen);
|
|
this.pnloptions.Widgets.Add(this.btnnew);
|
|
this.pnloptions.Dock = ShiftUI.DockStyle.Bottom;
|
|
this.pnloptions.Location = new System.Drawing.Point(0, 292);
|
|
this.pnloptions.Name = "pnloptions";
|
|
this.pnloptions.Size = new System.Drawing.Size(530, 38);
|
|
this.pnloptions.TabIndex = 1;
|
|
this.pnloptions.Visible = false;
|
|
//
|
|
// btnsave
|
|
//
|
|
this.btnsave.BackColor = System.Drawing.Color.White;
|
|
this.btnsave.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btnsave.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnsave.Image = global::ShiftOS.Properties.Resources.saveicon;
|
|
this.btnsave.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.btnsave.Location = new System.Drawing.Point(168, 4);
|
|
this.btnsave.Name = "btnsave";
|
|
this.btnsave.Size = new System.Drawing.Size(76, 31);
|
|
this.btnsave.TabIndex = 2;
|
|
this.btnsave.Text = "Save";
|
|
this.btnsave.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.btnsave.UseVisualStyleBackColor = false;
|
|
//
|
|
// btnopen
|
|
//
|
|
this.btnopen.BackColor = System.Drawing.Color.White;
|
|
this.btnopen.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btnopen.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnopen.Image = global::ShiftOS.Properties.Resources.openicon;
|
|
this.btnopen.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.btnopen.Location = new System.Drawing.Point(86, 4);
|
|
this.btnopen.Name = "btnopen";
|
|
this.btnopen.Size = new System.Drawing.Size(76, 31);
|
|
this.btnopen.TabIndex = 1;
|
|
this.btnopen.Text = "Open";
|
|
this.btnopen.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.btnopen.UseVisualStyleBackColor = false;
|
|
//
|
|
// btnnew
|
|
//
|
|
this.btnnew.BackColor = System.Drawing.Color.White;
|
|
this.btnnew.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btnnew.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnnew.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.btnnew.Location = new System.Drawing.Point(4, 4);
|
|
this.btnnew.Name = "btnnew";
|
|
this.btnnew.Size = new System.Drawing.Size(76, 31);
|
|
this.btnnew.TabIndex = 0;
|
|
this.btnnew.Text = "New";
|
|
this.btnnew.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.btnnew.UseVisualStyleBackColor = false;
|
|
//
|
|
// tmrcodepointcooldown
|
|
//
|
|
this.tmrcodepointcooldown.Interval = 10000;
|
|
//
|
|
// tmrshowearnedcodepoints
|
|
//
|
|
this.tmrshowearnedcodepoints.Interval = 3000;
|
|
//
|
|
// TextPad
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = ShiftUI.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.White;
|
|
this.ClientSize = new System.Drawing.Size(530, 330);
|
|
this.Widgets.Add(this.pgcontents);
|
|
this.FormBorderStyle = ShiftUI.FormBorderStyle.None;
|
|
this.MinimumSize = new System.Drawing.Size(230, 230);
|
|
this.Name = "TextPad";
|
|
this.Text = "TextPad";
|
|
this.TopMost = true;
|
|
this.pgcontents.ResumeLayout(false);
|
|
this.pgcontents.PerformLayout();
|
|
this.pnloptions.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
this.txtuserinput.TextChanged += new EventHandler(this.txtuserinput_TextChanged);
|
|
this.btnsave.Click += new EventHandler(this.btnsave_Click);
|
|
this.btnnew.Click += new EventHandler(this.btnnew_Click);
|
|
this.btnopen.Click += new EventHandler(this.btnopen_Click);
|
|
this.Load += new EventHandler(this.TextPad_Load);
|
|
this.tmrcodepointcooldown.Tick += new EventHandler(tmrcodepointcooldown_Tick);
|
|
this.tmrshowearnedcodepoints.Tick += new EventHandler(tmrshowearnedcodepoints_Tick);
|
|
this.pnlbreak.MouseEnter += new EventHandler(this.pnlbreak_MouseEnter);
|
|
}
|
|
internal ShiftUI.Panel pgcontents;
|
|
internal ShiftUI.TextBox txtuserinput;
|
|
internal ShiftUI.Panel pnloptions;
|
|
internal ShiftUI.Button btnnew;
|
|
internal ShiftUI.Button btnsave;
|
|
internal ShiftUI.Button btnopen;
|
|
internal ShiftUI.Panel pnlbreak;
|
|
internal ShiftUI.Timer tmrcodepointcooldown;
|
|
internal ShiftUI.Timer tmrshowearnedcodepoints;
|
|
}
|
|
} |