Minor UI tweaks to prevent the labels from over lapping the textboxes on smaller DPI screens.

This commit is contained in:
2017-04-12 17:49:37 -05:00
parent 6b2ed9d3d7
commit 2e19bba711
3 changed files with 87 additions and 58 deletions
+33 -22
View File
@@ -43,10 +43,11 @@
//
// adItemsListView
//
this.adItemsListView.Location = new System.Drawing.Point(258, 12);
this.adItemsListView.Location = new System.Drawing.Point(141, 7);
this.adItemsListView.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.adItemsListView.MultiSelect = false;
this.adItemsListView.Name = "adItemsListView";
this.adItemsListView.Size = new System.Drawing.Size(452, 431);
this.adItemsListView.Size = new System.Drawing.Size(248, 235);
this.adItemsListView.TabIndex = 3;
this.adItemsListView.TabStop = false;
this.adItemsListView.UseCompatibleStateImageBehavior = false;
@@ -55,9 +56,10 @@
// addUpdateItemButton
//
this.addUpdateItemButton.Enabled = false;
this.addUpdateItemButton.Location = new System.Drawing.Point(506, 449);
this.addUpdateItemButton.Location = new System.Drawing.Point(276, 243);
this.addUpdateItemButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.addUpdateItemButton.Name = "addUpdateItemButton";
this.addUpdateItemButton.Size = new System.Drawing.Size(200, 70);
this.addUpdateItemButton.Size = new System.Drawing.Size(109, 38);
this.addUpdateItemButton.TabIndex = 3;
this.addUpdateItemButton.Text = "Add New Item";
this.addUpdateItemButton.UseVisualStyleBackColor = true;
@@ -66,9 +68,10 @@
// removeAdItemButton
//
this.removeAdItemButton.Enabled = false;
this.removeAdItemButton.Location = new System.Drawing.Point(13, 449);
this.removeAdItemButton.Location = new System.Drawing.Point(7, 243);
this.removeAdItemButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.removeAdItemButton.Name = "removeAdItemButton";
this.removeAdItemButton.Size = new System.Drawing.Size(200, 70);
this.removeAdItemButton.Size = new System.Drawing.Size(109, 38);
this.removeAdItemButton.TabIndex = 4;
this.removeAdItemButton.Text = "Remove Selected Item";
this.removeAdItemButton.UseVisualStyleBackColor = true;
@@ -76,52 +79,58 @@
//
// newItemTextBox
//
this.newItemTextBox.Location = new System.Drawing.Point(13, 55);
this.newItemTextBox.Location = new System.Drawing.Point(2, 22);
this.newItemTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.newItemTextBox.MaxLength = 32;
this.newItemTextBox.Name = "newItemTextBox";
this.newItemTextBox.Size = new System.Drawing.Size(200, 29);
this.newItemTextBox.Size = new System.Drawing.Size(111, 20);
this.newItemTextBox.TabIndex = 1;
//
// descriptionTextBox
//
this.descriptionTextBox.Location = new System.Drawing.Point(13, 115);
this.descriptionTextBox.Location = new System.Drawing.Point(2, 69);
this.descriptionTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.descriptionTextBox.MaxLength = 128;
this.descriptionTextBox.Name = "descriptionTextBox";
this.descriptionTextBox.Size = new System.Drawing.Size(200, 29);
this.descriptionTextBox.Size = new System.Drawing.Size(111, 20);
this.descriptionTextBox.TabIndex = 2;
//
// newItemLabel
//
this.newItemLabel.AutoSize = true;
this.newItemLabel.Location = new System.Drawing.Point(12, 27);
this.newItemLabel.Location = new System.Drawing.Point(2, 7);
this.newItemLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.newItemLabel.Name = "newItemLabel";
this.newItemLabel.Size = new System.Drawing.Size(205, 25);
this.newItemLabel.Size = new System.Drawing.Size(113, 13);
this.newItemLabel.TabIndex = 5;
this.newItemLabel.Text = "Register New Ad Item:";
//
// descriptionLabel
//
this.descriptionLabel.AutoSize = true;
this.descriptionLabel.Location = new System.Drawing.Point(12, 87);
this.descriptionLabel.Location = new System.Drawing.Point(2, 54);
this.descriptionLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.descriptionLabel.Name = "descriptionLabel";
this.descriptionLabel.Size = new System.Drawing.Size(207, 25);
this.descriptionLabel.Size = new System.Drawing.Size(111, 13);
this.descriptionLabel.TabIndex = 6;
this.descriptionLabel.Text = "Description (Optional):";
//
// informationLabel
//
this.informationLabel.AutoSize = true;
this.informationLabel.Location = new System.Drawing.Point(8, 219);
this.informationLabel.Location = new System.Drawing.Point(4, 119);
this.informationLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.informationLabel.Name = "informationLabel";
this.informationLabel.Size = new System.Drawing.Size(0, 25);
this.informationLabel.Size = new System.Drawing.Size(0, 13);
this.informationLabel.TabIndex = 7;
//
// filterLabel
//
this.filterLabel.AutoSize = true;
this.filterLabel.Location = new System.Drawing.Point(12, 147);
this.filterLabel.Location = new System.Drawing.Point(2, 103);
this.filterLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.filterLabel.Name = "filterLabel";
this.filterLabel.Size = new System.Drawing.Size(115, 25);
this.filterLabel.Size = new System.Drawing.Size(61, 13);
this.filterLabel.TabIndex = 8;
this.filterLabel.Text = "Apply Filter:";
//
@@ -129,17 +138,18 @@
//
this.filterComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.filterComboBox.FormattingEnabled = true;
this.filterComboBox.Location = new System.Drawing.Point(13, 175);
this.filterComboBox.Location = new System.Drawing.Point(2, 118);
this.filterComboBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.filterComboBox.Name = "filterComboBox";
this.filterComboBox.Size = new System.Drawing.Size(200, 32);
this.filterComboBox.Size = new System.Drawing.Size(111, 21);
this.filterComboBox.TabIndex = 9;
this.filterComboBox.TabStop = false;
//
// FrmManageAdItems
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(722, 532);
this.ClientSize = new System.Drawing.Size(394, 288);
this.Controls.Add(this.filterComboBox);
this.Controls.Add(this.filterLabel);
this.Controls.Add(this.informationLabel);
@@ -152,6 +162,7 @@
this.Controls.Add(this.adItemsListView);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "FrmManageAdItems";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Manage Ad Items";