Font scaling fuckery

This commit is contained in:
2022-07-22 22:53:55 +00:00
parent 07becaee80
commit b536fbb3be
2 changed files with 55 additions and 31 deletions

View File

@@ -30,7 +30,6 @@
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.grid = new System.Windows.Forms.DataGridView(); this.grid = new System.Windows.Forms.DataGridView();
this.btnOK = new System.Windows.Forms.Button();
this.Object = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Object = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Fix = new System.Windows.Forms.DataGridViewButtonColumn(); this.Fix = new System.Windows.Forms.DataGridViewButtonColumn();
this.ObjectName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ObjectName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -42,7 +41,10 @@
this.QBListID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.QBListID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.WorkOrderItemId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WorkOrderItemId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.WorkOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WorkOrderId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnOK = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// grid // grid
@@ -67,25 +69,14 @@
this.QBListID, this.QBListID,
this.WorkOrderItemId, this.WorkOrderItemId,
this.WorkOrderId}); this.WorkOrderId});
this.grid.Location = new System.Drawing.Point(12, 12); this.grid.Location = new System.Drawing.Point(0, 0);
this.grid.Name = "grid"; this.grid.Name = "grid";
this.grid.ReadOnly = true; this.grid.ReadOnly = true;
this.grid.RowHeadersVisible = false; this.grid.RowHeadersVisible = false;
this.grid.Size = new System.Drawing.Size(1003, 510); this.grid.Size = new System.Drawing.Size(781, 483);
this.grid.TabIndex = 0; this.grid.TabIndex = 0;
this.grid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grid_CellContentClick); this.grid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.grid_CellContentClick);
// //
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.Location = new System.Drawing.Point(948, 584);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23);
this.btnOK.TabIndex = 16;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// Object // Object
// //
this.Object.DataPropertyName = "ObjectType"; this.Object.DataPropertyName = "ObjectType";
@@ -184,15 +175,35 @@
this.WorkOrderId.Visible = false; this.WorkOrderId.Visible = false;
this.WorkOrderId.Width = 93; this.WorkOrderId.Width = 93;
// //
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.Location = new System.Drawing.Point(701, 526);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23);
this.btnOK.TabIndex = 16;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// panel1
//
this.panel1.Controls.Add(this.grid);
this.panel1.Controls.Add(this.btnOK);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(784, 561);
this.panel1.TabIndex = 17;
//
// FixInvoiceProblems // FixInvoiceProblems
// //
this.AcceptButton = this.btnOK; this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 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(1027, 619); this.ClientSize = new System.Drawing.Size(784, 561);
this.ControlBox = false; this.ControlBox = false;
this.Controls.Add(this.btnOK); this.Controls.Add(this.panel1);
this.Controls.Add(this.grid);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.MinimumSize = new System.Drawing.Size(300, 300); this.MinimumSize = new System.Drawing.Size(300, 300);
this.Name = "FixInvoiceProblems"; this.Name = "FixInvoiceProblems";
@@ -200,6 +211,7 @@
this.Text = "Fix problems"; this.Text = "Fix problems";
this.Load += new System.EventHandler(this.FixInvoiceProblems_Load); this.Load += new System.EventHandler(this.FixInvoiceProblems_Load);
((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -219,5 +231,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn QBListID; private System.Windows.Forms.DataGridViewTextBoxColumn QBListID;
private System.Windows.Forms.DataGridViewTextBoxColumn WorkOrderItemId; private System.Windows.Forms.DataGridViewTextBoxColumn WorkOrderItemId;
private System.Windows.Forms.DataGridViewTextBoxColumn WorkOrderId; private System.Windows.Forms.DataGridViewTextBoxColumn WorkOrderId;
private System.Windows.Forms.Panel panel1;
} }
} }

View File

@@ -36,13 +36,15 @@
this.rbChangeAya = new System.Windows.Forms.RadioButton(); this.rbChangeAya = new System.Windows.Forms.RadioButton();
this.rbQBOnce = new System.Windows.Forms.RadioButton(); this.rbQBOnce = new System.Windows.Forms.RadioButton();
this.rbAyaOnce = new System.Windows.Forms.RadioButton(); this.rbAyaOnce = new System.Windows.Forms.RadioButton();
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// btnOK // btnOK
// //
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.Location = new System.Drawing.Point(550, 368); this.btnOK.Location = new System.Drawing.Point(555, 364);
this.btnOK.Name = "btnOK"; this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23); this.btnOK.Size = new System.Drawing.Size(75, 23);
this.btnOK.TabIndex = 6; this.btnOK.TabIndex = 6;
@@ -54,7 +56,7 @@
// //
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(4, 368); this.btnCancel.Location = new System.Drawing.Point(12, 364);
this.btnCancel.Name = "btnCancel"; this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 5; this.btnCancel.TabIndex = 5;
@@ -64,31 +66,29 @@
// //
// lblTitle // lblTitle
// //
this.lblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.lblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lblTitle.BackColor = System.Drawing.SystemColors.Window; this.lblTitle.BackColor = System.Drawing.SystemColors.Window;
this.lblTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblTitle.ForeColor = System.Drawing.SystemColors.WindowText; this.lblTitle.ForeColor = System.Drawing.SystemColors.WindowText;
this.lblTitle.Location = new System.Drawing.Point(4, 0); this.lblTitle.Location = new System.Drawing.Point(3, 0);
this.lblTitle.Name = "lblTitle"; this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(628, 74); this.lblTitle.Size = new System.Drawing.Size(637, 74);
this.lblTitle.TabIndex = 7; this.lblTitle.TabIndex = 7;
this.lblTitle.Text = "title"; this.lblTitle.Text = "title";
this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// groupBox1 // groupBox1
// //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.rbChangeQB); this.groupBox1.Controls.Add(this.rbChangeQB);
this.groupBox1.Controls.Add(this.rbChangeAya); this.groupBox1.Controls.Add(this.rbChangeAya);
this.groupBox1.Controls.Add(this.rbQBOnce); this.groupBox1.Controls.Add(this.rbQBOnce);
this.groupBox1.Controls.Add(this.rbAyaOnce); this.groupBox1.Controls.Add(this.rbAyaOnce);
this.groupBox1.Location = new System.Drawing.Point(4, 77); this.groupBox1.Location = new System.Drawing.Point(3, 77);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(628, 153); this.groupBox1.Size = new System.Drawing.Size(637, 153);
this.groupBox1.TabIndex = 11; this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// //
@@ -144,6 +144,18 @@
this.rbAyaOnce.UseVisualStyleBackColor = true; this.rbAyaOnce.UseVisualStyleBackColor = true;
this.rbAyaOnce.CheckedChanged += new System.EventHandler(this.rb_CheckedChanged); this.rbAyaOnce.CheckedChanged += new System.EventHandler(this.rb_CheckedChanged);
// //
// panel1
//
this.panel1.Controls.Add(this.lblTitle);
this.panel1.Controls.Add(this.btnOK);
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Controls.Add(this.btnCancel);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(637, 403);
this.panel1.TabIndex = 12;
//
// FixPriceDifference // FixPriceDifference
// //
this.AcceptButton = this.btnOK; this.AcceptButton = this.btnOK;
@@ -152,10 +164,7 @@
this.CancelButton = this.btnCancel; this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(637, 403); this.ClientSize = new System.Drawing.Size(637, 403);
this.ControlBox = false; this.ControlBox = false;
this.Controls.Add(this.groupBox1); this.Controls.Add(this.panel1);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.lblTitle);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "FixPriceDifference"; this.Name = "FixPriceDifference";
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
@@ -163,6 +172,7 @@
this.Load += new System.EventHandler(this.SetQBClass_load); this.Load += new System.EventHandler(this.SetQBClass_load);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -177,5 +187,6 @@
private System.Windows.Forms.RadioButton rbChangeAya; private System.Windows.Forms.RadioButton rbChangeAya;
private System.Windows.Forms.RadioButton rbQBOnce; private System.Windows.Forms.RadioButton rbQBOnce;
private System.Windows.Forms.RadioButton rbAyaOnce; private System.Windows.Forms.RadioButton rbAyaOnce;
private System.Windows.Forms.Panel panel1;
} }
} }