Merge pull request #8 from jwestfall69/mono-ui-fixes2

Additional Mono rendering fixes
This commit is contained in:
gjefferyes
2014-11-13 09:42:53 -06:00
14 changed files with 34 additions and 29 deletions

View File

@@ -70,7 +70,7 @@
// FrmHelpAbout // FrmHelpAbout
// //
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.None;
this.BackgroundImage = global::ROMVault2.rvImages.romvaultTZ; this.BackgroundImage = global::ROMVault2.rvImages.romvaultTZ;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(471, 172); this.ClientSize = new System.Drawing.Size(471, 172);

View File

@@ -34,7 +34,7 @@
// FrmKey // FrmKey
// //
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.None;
this.BackColor = System.Drawing.SystemColors.ControlDark; this.BackColor = System.Drawing.SystemColors.ControlDark;
this.ClientSize = new System.Drawing.Size(600, 532); this.ClientSize = new System.Drawing.Size(600, 532);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;

View File

@@ -286,7 +286,7 @@
this.gbDatInfo.Controls.Add(this.label8); this.gbDatInfo.Controls.Add(this.label8);
this.gbDatInfo.Location = new System.Drawing.Point(5, 0); this.gbDatInfo.Location = new System.Drawing.Point(5, 0);
this.gbDatInfo.Name = "gbDatInfo"; this.gbDatInfo.Name = "gbDatInfo";
this.gbDatInfo.Size = new System.Drawing.Size(440, 147); this.gbDatInfo.Size = new System.Drawing.Size(468, 147);
this.gbDatInfo.TabIndex = 3; this.gbDatInfo.TabIndex = 3;
this.gbDatInfo.TabStop = false; this.gbDatInfo.TabStop = false;
this.gbDatInfo.Text = "Dat Info :"; this.gbDatInfo.Text = "Dat Info :";
@@ -517,7 +517,7 @@
// //
// btnColorKey // btnColorKey
// //
this.btnColorKey.Location = new System.Drawing.Point(568, 85); this.btnColorKey.Location = new System.Drawing.Point(547, 85);
this.btnColorKey.Name = "btnColorKey"; this.btnColorKey.Name = "btnColorKey";
this.btnColorKey.Size = new System.Drawing.Size(89, 23); this.btnColorKey.Size = new System.Drawing.Size(89, 23);
this.btnColorKey.TabIndex = 9; this.btnColorKey.TabIndex = 9;
@@ -528,7 +528,7 @@
// chkBoxShowMerged // chkBoxShowMerged
// //
this.chkBoxShowMerged.AutoSize = true; this.chkBoxShowMerged.AutoSize = true;
this.chkBoxShowMerged.Location = new System.Drawing.Point(568, 68); this.chkBoxShowMerged.Location = new System.Drawing.Point(547, 68);
this.chkBoxShowMerged.Name = "chkBoxShowMerged"; this.chkBoxShowMerged.Name = "chkBoxShowMerged";
this.chkBoxShowMerged.Size = new System.Drawing.Size(125, 17); this.chkBoxShowMerged.Size = new System.Drawing.Size(125, 17);
this.chkBoxShowMerged.TabIndex = 8; this.chkBoxShowMerged.TabIndex = 8;
@@ -541,7 +541,7 @@
this.chkBoxShowFixed.AutoSize = true; this.chkBoxShowFixed.AutoSize = true;
this.chkBoxShowFixed.Checked = true; this.chkBoxShowFixed.Checked = true;
this.chkBoxShowFixed.CheckState = System.Windows.Forms.CheckState.Checked; this.chkBoxShowFixed.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkBoxShowFixed.Location = new System.Drawing.Point(568, 52); this.chkBoxShowFixed.Location = new System.Drawing.Point(547, 52);
this.chkBoxShowFixed.Name = "chkBoxShowFixed"; this.chkBoxShowFixed.Name = "chkBoxShowFixed";
this.chkBoxShowFixed.Size = new System.Drawing.Size(102, 17); this.chkBoxShowFixed.Size = new System.Drawing.Size(102, 17);
this.chkBoxShowFixed.TabIndex = 7; this.chkBoxShowFixed.TabIndex = 7;
@@ -554,7 +554,7 @@
this.chkBoxShowMissing.AutoSize = true; this.chkBoxShowMissing.AutoSize = true;
this.chkBoxShowMissing.Checked = true; this.chkBoxShowMissing.Checked = true;
this.chkBoxShowMissing.CheckState = System.Windows.Forms.CheckState.Checked; this.chkBoxShowMissing.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkBoxShowMissing.Location = new System.Drawing.Point(568, 36); this.chkBoxShowMissing.Location = new System.Drawing.Point(547, 36);
this.chkBoxShowMissing.Name = "chkBoxShowMissing"; this.chkBoxShowMissing.Name = "chkBoxShowMissing";
this.chkBoxShowMissing.Size = new System.Drawing.Size(124, 17); this.chkBoxShowMissing.Size = new System.Drawing.Size(124, 17);
this.chkBoxShowMissing.TabIndex = 6; this.chkBoxShowMissing.TabIndex = 6;
@@ -567,7 +567,7 @@
this.chkBoxShowCorrect.AutoSize = true; this.chkBoxShowCorrect.AutoSize = true;
this.chkBoxShowCorrect.Checked = true; this.chkBoxShowCorrect.Checked = true;
this.chkBoxShowCorrect.CheckState = System.Windows.Forms.CheckState.Checked; this.chkBoxShowCorrect.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkBoxShowCorrect.Location = new System.Drawing.Point(568, 20); this.chkBoxShowCorrect.Location = new System.Drawing.Point(547, 20);
this.chkBoxShowCorrect.Name = "chkBoxShowCorrect"; this.chkBoxShowCorrect.Name = "chkBoxShowCorrect";
this.chkBoxShowCorrect.Size = new System.Drawing.Size(123, 17); this.chkBoxShowCorrect.Size = new System.Drawing.Size(123, 17);
this.chkBoxShowCorrect.TabIndex = 5; this.chkBoxShowCorrect.TabIndex = 5;
@@ -579,7 +579,7 @@
// //
this.gbSetInfo.Location = new System.Drawing.Point(5, 0); this.gbSetInfo.Location = new System.Drawing.Point(5, 0);
this.gbSetInfo.Name = "gbSetInfo"; this.gbSetInfo.Name = "gbSetInfo";
this.gbSetInfo.Size = new System.Drawing.Size(416, 147); this.gbSetInfo.Size = new System.Drawing.Size(532, 147);
this.gbSetInfo.TabIndex = 4; this.gbSetInfo.TabIndex = 4;
this.gbSetInfo.TabStop = false; this.gbSetInfo.TabStop = false;
this.gbSetInfo.Text = "Game Info :"; this.gbSetInfo.Text = "Game Info :";
@@ -989,7 +989,7 @@
// FrmMain // FrmMain
// //
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.None;
this.ClientSize = new System.Drawing.Size(1264, 762); this.ClientSize = new System.Drawing.Size(1264, 762);
this.Controls.Add(this.splitContainer1); this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.menuStrip1); this.Controls.Add(this.menuStrip1);

View File

@@ -480,6 +480,9 @@ namespace ROMVault2
private void splitContainer3_Panel1_Resize(object sender, EventArgs e) private void splitContainer3_Panel1_Resize(object sender, EventArgs e)
{ {
// fixes a rendering issue in mono
if (splitContainer3.Panel1.Width == 0) return;
gbDatInfo.Width = splitContainer3.Panel1.Width - (gbDatInfo.Left * 2); gbDatInfo.Width = splitContainer3.Panel1.Width - (gbDatInfo.Left * 2);
} }
@@ -840,6 +843,9 @@ namespace ROMVault2
private void splitContainer4_Panel1_Resize(object sender, EventArgs e) private void splitContainer4_Panel1_Resize(object sender, EventArgs e)
{ {
// fixes a rendering issue in mono
if (splitContainer4.Panel1.Width == 0) return;
int chkLeft = splitContainer4.Panel1.Width - 150; int chkLeft = splitContainer4.Panel1.Width - 150;
if (chkLeft < 430) chkLeft = 430; if (chkLeft < 430) chkLeft = 430;

View File

@@ -74,7 +74,7 @@
// //
// cancelButton // cancelButton
// //
this.cancelButton.Location = new System.Drawing.Point(420, 99); this.cancelButton.Location = new System.Drawing.Point(424, 99);
this.cancelButton.Name = "cancelButton"; this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(75, 23); this.cancelButton.Size = new System.Drawing.Size(75, 23);
this.cancelButton.TabIndex = 2; this.cancelButton.TabIndex = 2;
@@ -123,7 +123,7 @@
this.ErrorGrid.ShowCellToolTips = false; this.ErrorGrid.ShowCellToolTips = false;
this.ErrorGrid.ShowEditingIcon = false; this.ErrorGrid.ShowEditingIcon = false;
this.ErrorGrid.ShowRowErrors = false; this.ErrorGrid.ShowRowErrors = false;
this.ErrorGrid.Size = new System.Drawing.Size(591, 186); this.ErrorGrid.Size = new System.Drawing.Size(511, 186);
this.ErrorGrid.TabIndex = 6; this.ErrorGrid.TabIndex = 6;
this.ErrorGrid.SelectionChanged += new System.EventHandler(this.ErrorGridSelectionChanged); this.ErrorGrid.SelectionChanged += new System.EventHandler(this.ErrorGridSelectionChanged);
// //
@@ -165,7 +165,7 @@
// splitContainer1.Panel2 // splitContainer1.Panel2
// //
this.splitContainer1.Panel2.Controls.Add(this.ErrorGrid); this.splitContainer1.Panel2.Controls.Add(this.ErrorGrid);
this.splitContainer1.Size = new System.Drawing.Size(591, 320); this.splitContainer1.Size = new System.Drawing.Size(511, 320);
this.splitContainer1.SplitterDistance = 130; this.splitContainer1.SplitterDistance = 130;
this.splitContainer1.TabIndex = 8; this.splitContainer1.TabIndex = 8;
// //
@@ -184,9 +184,8 @@
// //
// FrmProgressWindow // FrmProgressWindow
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(511, 320);
this.ClientSize = new System.Drawing.Size(591, 320);
this.Controls.Add(this.splitContainer1); this.Controls.Add(this.splitContainer1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmProgressWindow"; this.Name = "FrmProgressWindow";

View File

@@ -26,7 +26,7 @@ namespace ROMVault2
_titleRoot = titleRoot; _titleRoot = titleRoot;
InitializeComponent(); InitializeComponent();
ClientSize = new Size(498, 131); ClientSize = new Size(511, 131);
_titleRoot = titleRoot; _titleRoot = titleRoot;
@@ -128,8 +128,8 @@ namespace ROMVault2
if (!_errorOpen) if (!_errorOpen)
{ {
_errorOpen = true; _errorOpen = true;
ClientSize = new Size(498, 292); ClientSize = new Size(511, 292);
MinimumSize = new Size(498, 292); MinimumSize = new Size(511, 292);
FormBorderStyle = FormBorderStyle.SizableToolWindow; FormBorderStyle = FormBorderStyle.SizableToolWindow;
} }
@@ -153,8 +153,8 @@ namespace ROMVault2
if (!_errorOpen) if (!_errorOpen)
{ {
_errorOpen = true; _errorOpen = true;
ClientSize = new Size(498, 292); ClientSize = new Size(511, 292);
MinimumSize = new Size(498, 292); MinimumSize = new Size(511, 292);
FormBorderStyle = FormBorderStyle.SizableToolWindow; FormBorderStyle = FormBorderStyle.SizableToolWindow;
} }

View File

@@ -244,7 +244,7 @@
// FrmProgressWindowFix // FrmProgressWindowFix
// //
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.None;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1027, 500); this.ClientSize = new System.Drawing.Size(1027, 500);
this.Controls.Add(this.splitContainer1); this.Controls.Add(this.splitContainer1);

View File

@@ -91,7 +91,7 @@
// FrmRegistration // FrmRegistration
// //
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.None;
this.ClientSize = new System.Drawing.Size(444, 178); this.ClientSize = new System.Drawing.Size(444, 178);
this.ControlBox = false; this.ControlBox = false;
this.Controls.Add(this.btnOK); this.Controls.Add(this.btnOK);

View File

@@ -198,7 +198,7 @@
// FrmSetDir // FrmSetDir
// //
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.None;
this.ClientSize = new System.Drawing.Size(694, 391); this.ClientSize = new System.Drawing.Size(694, 391);
this.Controls.Add(this.btnResetAll); this.Controls.Add(this.btnResetAll);
this.Controls.Add(this.btnClose); this.Controls.Add(this.btnClose);

View File

@@ -220,7 +220,7 @@
// FrmSettings // FrmSettings
// //
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.None;
this.ClientSize = new System.Drawing.Size(545, 346); this.ClientSize = new System.Drawing.Size(545, 346);
this.Controls.Add(this.chkDoubleCheckDelete); this.Controls.Add(this.chkDoubleCheckDelete);
this.Controls.Add(this.label5); this.Controls.Add(this.label5);

View File

@@ -65,7 +65,7 @@
// FrmShowError // FrmShowError
// //
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.None;
this.ClientSize = new System.Drawing.Size(589, 583); this.ClientSize = new System.Drawing.Size(589, 583);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);

View File

@@ -86,7 +86,7 @@
// FrmSplashScreen // FrmSplashScreen
// //
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.None;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(465, 207); this.ClientSize = new System.Drawing.Size(465, 207);

View File

@@ -33,7 +33,7 @@
// rvTree // rvTree
// //
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.None;
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.DoubleBuffered = true; this.DoubleBuffered = true;
this.Name = "RvTree"; this.Name = "RvTree";

View File

@@ -60,7 +60,7 @@ namespace ROMVault2
pTree.Tree.TreeBranches = pTreeBranches; pTree.Tree.TreeBranches = pTreeBranches;
pTree.Tree.RTree = new Rectangle(0, _yPos - 8, nodeDepth * 18, 16); pTree.Tree.RTree = new Rectangle(0, _yPos - 8, 1 + nodeDepth * 18, 16);
pTree.Tree.RExpand = new Rectangle(5 + nodeDepth * 18, _yPos + 4, 9, 9); pTree.Tree.RExpand = new Rectangle(5 + nodeDepth * 18, _yPos + 4, 9, 9);
pTree.Tree.RChecked = new Rectangle(20 + nodeDepth * 18, _yPos + 2, 13, 13); pTree.Tree.RChecked = new Rectangle(20 + nodeDepth * 18, _yPos + 2, 13, 13);
pTree.Tree.RIcon = new Rectangle(35 + nodeDepth * 18, _yPos, 16, 16); pTree.Tree.RIcon = new Rectangle(35 + nodeDepth * 18, _yPos, 16, 16);