Revert "Added a buggy dynamically changing infobox (this will most likely not work)"

This reverts commit 23791cf63b.
This commit is contained in:
FloppyDiskDrive 2017-09-27 20:34:58 -05:00
parent 23791cf63b
commit 753a880c0d
3 changed files with 3 additions and 19 deletions

Binary file not shown.

View file

@ -70,7 +70,7 @@
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left))); | System.Windows.Forms.AnchorStyles.Left)));
this.pictureBox1.Image = global::ShiftOS.Engine.Properties.Resources.Symbolinfo; this.pictureBox1.Image = global::ShiftOS.Engine.Properties.Resources.Symbolinfo;
this.pictureBox1.Location = new System.Drawing.Point(0, 34); this.pictureBox1.Location = new System.Drawing.Point(3, 35);
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(80, 70); this.pictureBox1.Size = new System.Drawing.Size(80, 70);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;

View file

@ -11,12 +11,6 @@ namespace ShiftOS.Engine.WindowManager
Stream _str; Stream _str;
private int _buttonChoice; private int _buttonChoice;
private int _buttonSelected; private int _buttonSelected;
private int _leftDistance;
private int _rightDistance;
private int _textWidth;
private int _textHeight;
private int _topDistance;
private int _bottomDistance;
public InfoboxTemplate(ButtonType type) public InfoboxTemplate(ButtonType type)
{ {
InitializeComponent(); InitializeComponent();
@ -90,18 +84,8 @@ namespace ShiftOS.Engine.WindowManager
private void changeSize_Tick(object sender, EventArgs e) private void changeSize_Tick(object sender, EventArgs e)
{ {
ChangeSize(); this.Height += label1.Height;
} this.Width += label1.Width;
private void ChangeSize()
{
_textHeight = label1.Height;
_textWidth = label1.Width;
_topDistance = 55;
_bottomDistance = 121;
_rightDistance = 101;
_leftDistance = 55;
this.Height = _textHeight + _topDistance + _bottomDistance;
this.Width = _textWidth + _leftDistance + _rightDistance;
} }
} }
} }