Added progress bar and other changes to splash screen

This commit is contained in:
Michael Becker 2014-07-19 16:03:17 -04:00
parent 32b00f235b
commit 4cab39520f
2 changed files with 64 additions and 10 deletions

View File

@ -31,18 +31,19 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashScreenWindow));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.lblStatus = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.lblTitle = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.lblSeparator = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
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.Right)));
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(379, 99);
this.pictureBox1.Size = new System.Drawing.Size(128, 128);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
@ -51,26 +52,75 @@
//
this.lblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblStatus.Location = new System.Drawing.Point(12, 105);
this.lblStatus.Location = new System.Drawing.Point(12, 150);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(355, 16);
this.lblStatus.Size = new System.Drawing.Size(497, 16);
this.lblStatus.TabIndex = 2;
this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// progressBar1
//
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressBar1.Location = new System.Drawing.Point(12, 175);
this.progressBar1.MarqueeAnimationSpeed = 5;
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(497, 23);
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
this.progressBar1.TabIndex = 3;
//
// lblTitle
//
this.lblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblTitle.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.lblTitle.Font = new System.Drawing.Font("Segoe UI Light", 32F);
this.lblTitle.Location = new System.Drawing.Point(135, 9);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(374, 66);
this.lblTitle.TabIndex = 4;
this.lblTitle.Text = "Universal Editor";
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.label1.Font = new System.Drawing.Font("Segoe UI Light", 20F);
this.label1.Location = new System.Drawing.Point(135, 75);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(374, 41);
this.label1.TabIndex = 4;
this.label1.Text = "version 4.0";
//
// lblSeparator
//
this.lblSeparator.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblSeparator.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lblSeparator.Location = new System.Drawing.Point(12, 140);
this.lblSeparator.Name = "lblSeparator";
this.lblSeparator.Size = new System.Drawing.Size(497, 2);
this.lblSeparator.TabIndex = 5;
//
// SplashScreenWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(379, 129);
this.ClientSize = new System.Drawing.Size(521, 210);
this.ControlBox = false;
this.Controls.Add(this.lblSeparator);
this.Controls.Add(this.label1);
this.Controls.Add(this.lblTitle);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.lblStatus);
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "SplashScreenWindow";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Splash Screen";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
@ -80,5 +130,9 @@
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label lblStatus;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.Label lblTitle;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lblSeparator;
}
}

View File

@ -42,7 +42,7 @@ namespace UniversalEditor.UserInterface.WindowsForms
}
}
}
Size = pictureBox1.Image.Size;
// Size = pictureBox1.Image.Size;
}
protected override void OnShown(EventArgs e)