anchor the text box in the EULA dialog window so that the OK button (or Accept button) and the scroll bar remains fully in view

This commit is contained in:
John Jenko 2016-11-10 21:41:00 +00:00
parent 2229ac2908
commit e2a34f18fd

View File

@ -34,12 +34,15 @@ namespace Volian.Controls.Library
// //
// rtbViewFile // rtbViewFile
// //
this.rtbViewFile.Dock = System.Windows.Forms.DockStyle.Top; this.rtbViewFile.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.rtbViewFile.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rtbViewFile.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rtbViewFile.Location = new System.Drawing.Point(0, 0); this.rtbViewFile.Location = new System.Drawing.Point(0, 0);
this.rtbViewFile.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.rtbViewFile.Name = "rtbViewFile"; this.rtbViewFile.Name = "rtbViewFile";
this.rtbViewFile.ReadOnly = true; this.rtbViewFile.ReadOnly = true;
this.rtbViewFile.Size = new System.Drawing.Size(634, 678); this.rtbViewFile.Size = new System.Drawing.Size(476, 552);
this.rtbViewFile.TabIndex = 0; this.rtbViewFile.TabIndex = 0;
this.rtbViewFile.Text = ""; this.rtbViewFile.Text = "";
// //
@ -50,21 +53,23 @@ namespace Volian.Controls.Library
this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonX1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.buttonX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonX1.Location = new System.Drawing.Point(559, 691); this.buttonX1.Location = new System.Drawing.Point(419, 560);
this.buttonX1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.buttonX1.Name = "buttonX1"; this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(75, 23); this.buttonX1.Size = new System.Drawing.Size(56, 19);
this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX1.TabIndex = 1; this.buttonX1.TabIndex = 1;
this.buttonX1.Text = "OK"; this.buttonX1.Text = "OK";
// //
// frmViewTextFile // frmViewTextFile
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(634, 715); this.ClientSize = new System.Drawing.Size(476, 580);
this.Controls.Add(this.buttonX1);
this.Controls.Add(this.rtbViewFile); this.Controls.Add(this.rtbViewFile);
this.Controls.Add(this.buttonX1);
this.DoubleBuffered = true; this.DoubleBuffered = true;
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "frmViewTextFile"; this.Name = "frmViewTextFile";
this.ShowIcon = false; this.ShowIcon = false;
this.Text = "frmViewTextFile"; this.Text = "frmViewTextFile";