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";
+27 -18
View File
@@ -42,10 +42,11 @@
// suppliersListBox
//
this.suppliersListBox.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.suppliersListBox.Location = new System.Drawing.Point(257, 12);
this.suppliersListBox.Location = new System.Drawing.Point(140, 7);
this.suppliersListBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.suppliersListBox.MultiSelect = false;
this.suppliersListBox.Name = "suppliersListBox";
this.suppliersListBox.Size = new System.Drawing.Size(423, 412);
this.suppliersListBox.Size = new System.Drawing.Size(233, 225);
this.suppliersListBox.TabIndex = 16;
this.suppliersListBox.TabStop = false;
this.suppliersListBox.UseCompatibleStateImageBehavior = false;
@@ -53,52 +54,58 @@
//
// descriptionTextBox
//
this.descriptionTextBox.Location = new System.Drawing.Point(14, 115);
this.descriptionTextBox.Location = new System.Drawing.Point(5, 74);
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(228, 29);
this.descriptionTextBox.Size = new System.Drawing.Size(126, 20);
this.descriptionTextBox.TabIndex = 2;
//
// descriptionLabel
//
this.descriptionLabel.AutoSize = true;
this.descriptionLabel.Location = new System.Drawing.Point(14, 82);
this.descriptionLabel.Location = new System.Drawing.Point(5, 56);
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 = 15;
this.descriptionLabel.Text = "Description (Optional):";
//
// informationLabel
//
this.informationLabel.AutoSize = true;
this.informationLabel.Location = new System.Drawing.Point(14, 162);
this.informationLabel.Location = new System.Drawing.Point(8, 88);
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 = 14;
//
// newSupplierTextBox
//
this.newSupplierTextBox.Location = new System.Drawing.Point(14, 45);
this.newSupplierTextBox.Location = new System.Drawing.Point(5, 24);
this.newSupplierTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.newSupplierTextBox.MaxLength = 32;
this.newSupplierTextBox.Name = "newSupplierTextBox";
this.newSupplierTextBox.Size = new System.Drawing.Size(228, 29);
this.newSupplierTextBox.Size = new System.Drawing.Size(126, 20);
this.newSupplierTextBox.TabIndex = 1;
//
// newSupplierLabel
//
this.newSupplierLabel.AutoSize = true;
this.newSupplierLabel.Location = new System.Drawing.Point(14, 12);
this.newSupplierLabel.Location = new System.Drawing.Point(5, 7);
this.newSupplierLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.newSupplierLabel.Name = "newSupplierLabel";
this.newSupplierLabel.Size = new System.Drawing.Size(166, 25);
this.newSupplierLabel.Size = new System.Drawing.Size(90, 13);
this.newSupplierLabel.TabIndex = 11;
this.newSupplierLabel.Text = "Register Supplier:";
//
// deleteSupplierButton
//
this.deleteSupplierButton.Enabled = false;
this.deleteSupplierButton.Location = new System.Drawing.Point(12, 430);
this.deleteSupplierButton.Location = new System.Drawing.Point(7, 233);
this.deleteSupplierButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.deleteSupplierButton.Name = "deleteSupplierButton";
this.deleteSupplierButton.Size = new System.Drawing.Size(200, 50);
this.deleteSupplierButton.Size = new System.Drawing.Size(109, 27);
this.deleteSupplierButton.TabIndex = 4;
this.deleteSupplierButton.Text = "Remove Supplier";
this.deleteSupplierButton.UseVisualStyleBackColor = true;
@@ -107,9 +114,10 @@
// registerSupplierButton
//
this.registerSupplierButton.Enabled = false;
this.registerSupplierButton.Location = new System.Drawing.Point(480, 430);
this.registerSupplierButton.Location = new System.Drawing.Point(262, 233);
this.registerSupplierButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.registerSupplierButton.Name = "registerSupplierButton";
this.registerSupplierButton.Size = new System.Drawing.Size(200, 50);
this.registerSupplierButton.Size = new System.Drawing.Size(109, 27);
this.registerSupplierButton.TabIndex = 3;
this.registerSupplierButton.Text = "Register Supplier";
this.registerSupplierButton.UseVisualStyleBackColor = true;
@@ -117,9 +125,9 @@
//
// FrmManageSuppliers
//
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(692, 492);
this.ClientSize = new System.Drawing.Size(377, 267);
this.Controls.Add(this.suppliersListBox);
this.Controls.Add(this.descriptionTextBox);
this.Controls.Add(this.descriptionLabel);
@@ -130,6 +138,7 @@
this.Controls.Add(this.registerSupplierButton);
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.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmManageSuppliers";
+27 -18
View File
@@ -42,9 +42,10 @@
// registerAdSpecialButton
//
this.registerAdSpecialButton.Enabled = false;
this.registerAdSpecialButton.Location = new System.Drawing.Point(480, 430);
this.registerAdSpecialButton.Location = new System.Drawing.Point(262, 233);
this.registerAdSpecialButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.registerAdSpecialButton.Name = "registerAdSpecialButton";
this.registerAdSpecialButton.Size = new System.Drawing.Size(200, 50);
this.registerAdSpecialButton.Size = new System.Drawing.Size(109, 27);
this.registerAdSpecialButton.TabIndex = 3;
this.registerAdSpecialButton.Text = "Register Ad Special";
this.registerAdSpecialButton.UseVisualStyleBackColor = true;
@@ -53,9 +54,10 @@
// deleteAdSpecialButton
//
this.deleteAdSpecialButton.Enabled = false;
this.deleteAdSpecialButton.Location = new System.Drawing.Point(12, 430);
this.deleteAdSpecialButton.Location = new System.Drawing.Point(7, 233);
this.deleteAdSpecialButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.deleteAdSpecialButton.Name = "deleteAdSpecialButton";
this.deleteAdSpecialButton.Size = new System.Drawing.Size(200, 50);
this.deleteAdSpecialButton.Size = new System.Drawing.Size(109, 27);
this.deleteAdSpecialButton.TabIndex = 4;
this.deleteAdSpecialButton.Text = "Remove Ad Special";
this.deleteAdSpecialButton.UseVisualStyleBackColor = true;
@@ -64,52 +66,58 @@
// newAdSpecialLabel
//
this.newAdSpecialLabel.AutoSize = true;
this.newAdSpecialLabel.Location = new System.Drawing.Point(17, 21);
this.newAdSpecialLabel.Location = new System.Drawing.Point(5, 11);
this.newAdSpecialLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.newAdSpecialLabel.Name = "newAdSpecialLabel";
this.newAdSpecialLabel.Size = new System.Drawing.Size(233, 25);
this.newAdSpecialLabel.Size = new System.Drawing.Size(128, 13);
this.newAdSpecialLabel.TabIndex = 3;
this.newAdSpecialLabel.Text = "Register New Ad Special:";
//
// newAdSpecialTextBox
//
this.newAdSpecialTextBox.Location = new System.Drawing.Point(17, 54);
this.newAdSpecialTextBox.Location = new System.Drawing.Point(5, 29);
this.newAdSpecialTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.newAdSpecialTextBox.MaxLength = 32;
this.newAdSpecialTextBox.Name = "newAdSpecialTextBox";
this.newAdSpecialTextBox.Size = new System.Drawing.Size(228, 29);
this.newAdSpecialTextBox.Size = new System.Drawing.Size(126, 20);
this.newAdSpecialTextBox.TabIndex = 1;
//
// informationLabel
//
this.informationLabel.AutoSize = true;
this.informationLabel.Location = new System.Drawing.Point(17, 171);
this.informationLabel.Location = new System.Drawing.Point(9, 93);
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 = 5;
//
// adSpecialDescription
//
this.adSpecialDescription.AutoSize = true;
this.adSpecialDescription.Location = new System.Drawing.Point(17, 91);
this.adSpecialDescription.Location = new System.Drawing.Point(5, 61);
this.adSpecialDescription.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.adSpecialDescription.Name = "adSpecialDescription";
this.adSpecialDescription.Size = new System.Drawing.Size(207, 25);
this.adSpecialDescription.Size = new System.Drawing.Size(111, 13);
this.adSpecialDescription.TabIndex = 6;
this.adSpecialDescription.Text = "Description (Optional):";
//
// descriptionTextBox
//
this.descriptionTextBox.Location = new System.Drawing.Point(17, 124);
this.descriptionTextBox.Location = new System.Drawing.Point(5, 79);
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(228, 29);
this.descriptionTextBox.Size = new System.Drawing.Size(126, 20);
this.descriptionTextBox.TabIndex = 2;
//
// adSpecialsListBox
//
this.adSpecialsListBox.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.adSpecialsListBox.Location = new System.Drawing.Point(260, 21);
this.adSpecialsListBox.Location = new System.Drawing.Point(142, 11);
this.adSpecialsListBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.adSpecialsListBox.MultiSelect = false;
this.adSpecialsListBox.Name = "adSpecialsListBox";
this.adSpecialsListBox.Size = new System.Drawing.Size(420, 401);
this.adSpecialsListBox.Size = new System.Drawing.Size(231, 219);
this.adSpecialsListBox.TabIndex = 8;
this.adSpecialsListBox.TabStop = false;
this.adSpecialsListBox.UseCompatibleStateImageBehavior = false;
@@ -117,9 +125,9 @@
//
// FrmRegisterAdSpecial
//
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(692, 492);
this.ClientSize = new System.Drawing.Size(377, 267);
this.Controls.Add(this.adSpecialsListBox);
this.Controls.Add(this.descriptionTextBox);
this.Controls.Add(this.adSpecialDescription);
@@ -130,6 +138,7 @@
this.Controls.Add(this.registerAdSpecialButton);
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.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmRegisterAdSpecial";