mirror of
https://github.com/fadden/6502bench.git
synced 2025-02-07 14:31:00 +00:00
Improve behavior under Mono
Worked around two crashes in Mono 5.16's WinForms implementation. (See mono/mono#11070 for the details.) Still very unstable, but it no longer crashes on startup. Also, tweaked the "about" box title.
This commit is contained in:
parent
275c6dec8c
commit
b7dc8e1711
4
SourceGen/AppForms/AboutBox.Designer.cs
generated
4
SourceGen/AppForms/AboutBox.Designer.cs
generated
@ -65,7 +65,7 @@ namespace SourceGen.AppForms {
|
|||||||
this.sourceGenLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.sourceGenLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.sourceGenLabel.Location = new System.Drawing.Point(340, 13);
|
this.sourceGenLabel.Location = new System.Drawing.Point(340, 13);
|
||||||
this.sourceGenLabel.Name = "sourceGenLabel";
|
this.sourceGenLabel.Name = "sourceGenLabel";
|
||||||
this.sourceGenLabel.Size = new System.Drawing.Size(349, 37);
|
this.sourceGenLabel.Size = new System.Drawing.Size(346, 37);
|
||||||
this.sourceGenLabel.TabIndex = 1;
|
this.sourceGenLabel.TabIndex = 1;
|
||||||
this.sourceGenLabel.Text = "6502bench SourceGen";
|
this.sourceGenLabel.Text = "6502bench SourceGen";
|
||||||
//
|
//
|
||||||
@ -164,7 +164,7 @@ namespace SourceGen.AppForms {
|
|||||||
this.Name = "AboutBox";
|
this.Name = "AboutBox";
|
||||||
this.ShowInTaskbar = false;
|
this.ShowInTaskbar = false;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "AboutBox";
|
this.Text = "About SourceGen";
|
||||||
this.Load += new System.EventHandler(this.AboutBox_Load);
|
this.Load += new System.EventHandler(this.AboutBox_Load);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.boardPictureBox)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.boardPictureBox)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
19
SourceGen/AppForms/ProjectView.Designer.cs
generated
19
SourceGen/AppForms/ProjectView.Designer.cs
generated
@ -1211,6 +1211,7 @@ namespace SourceGen.AppForms
|
|||||||
this.codeListView.Size = new System.Drawing.Size(446, 543);
|
this.codeListView.Size = new System.Drawing.Size(446, 543);
|
||||||
this.codeListView.TabIndex = 0;
|
this.codeListView.TabIndex = 0;
|
||||||
this.codeListView.UseCompatibleStateImageBehavior = false;
|
this.codeListView.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.codeListView.View = System.Windows.Forms.View.Details;
|
||||||
this.codeListView.VirtualMode = true;
|
this.codeListView.VirtualMode = true;
|
||||||
this.codeListView.CacheVirtualItems += new System.Windows.Forms.CacheVirtualItemsEventHandler(this.codeListView_CacheVirtualItems);
|
this.codeListView.CacheVirtualItems += new System.Windows.Forms.CacheVirtualItemsEventHandler(this.codeListView_CacheVirtualItems);
|
||||||
this.codeListView.ColumnWidthChanged += new System.Windows.Forms.ColumnWidthChangedEventHandler(this.codeListView_ColumnWidthChanged);
|
this.codeListView.ColumnWidthChanged += new System.Windows.Forms.ColumnWidthChangedEventHandler(this.codeListView_ColumnWidthChanged);
|
||||||
@ -1227,47 +1228,47 @@ namespace SourceGen.AppForms
|
|||||||
// columnOffset
|
// columnOffset
|
||||||
//
|
//
|
||||||
this.columnOffset.Text = "offset";
|
this.columnOffset.Text = "offset";
|
||||||
this.columnOffset.Width = -2;
|
this.columnOffset.Width = 0;
|
||||||
//
|
//
|
||||||
// columnAddr
|
// columnAddr
|
||||||
//
|
//
|
||||||
this.columnAddr.Text = "addr";
|
this.columnAddr.Text = "addr";
|
||||||
this.columnAddr.Width = -2;
|
this.columnAddr.Width = 0;
|
||||||
//
|
//
|
||||||
// columnBytes
|
// columnBytes
|
||||||
//
|
//
|
||||||
this.columnBytes.Text = "bytes";
|
this.columnBytes.Text = "bytes";
|
||||||
this.columnBytes.Width = -2;
|
this.columnBytes.Width = 0;
|
||||||
//
|
//
|
||||||
// columnFlags
|
// columnFlags
|
||||||
//
|
//
|
||||||
this.columnFlags.Text = "flags";
|
this.columnFlags.Text = "flags";
|
||||||
this.columnFlags.Width = -2;
|
this.columnFlags.Width = 0;
|
||||||
//
|
//
|
||||||
// columnAttr
|
// columnAttr
|
||||||
//
|
//
|
||||||
this.columnAttr.Text = "attr";
|
this.columnAttr.Text = "attr";
|
||||||
this.columnAttr.Width = -2;
|
this.columnAttr.Width = 0;
|
||||||
//
|
//
|
||||||
// columnLabel
|
// columnLabel
|
||||||
//
|
//
|
||||||
this.columnLabel.Text = "label";
|
this.columnLabel.Text = "label";
|
||||||
this.columnLabel.Width = -2;
|
this.columnLabel.Width = 0;
|
||||||
//
|
//
|
||||||
// columnOpcode
|
// columnOpcode
|
||||||
//
|
//
|
||||||
this.columnOpcode.Text = "opcode";
|
this.columnOpcode.Text = "opcode";
|
||||||
this.columnOpcode.Width = -2;
|
this.columnOpcode.Width = 0;
|
||||||
//
|
//
|
||||||
// columnOperand
|
// columnOperand
|
||||||
//
|
//
|
||||||
this.columnOperand.Text = "operand";
|
this.columnOperand.Text = "operand";
|
||||||
this.columnOperand.Width = -2;
|
this.columnOperand.Width = 0;
|
||||||
//
|
//
|
||||||
// columnComment
|
// columnComment
|
||||||
//
|
//
|
||||||
this.columnComment.Text = "comment";
|
this.columnComment.Text = "comment";
|
||||||
this.columnComment.Width = -2;
|
this.columnComment.Width = 0;
|
||||||
//
|
//
|
||||||
// rightPanelSplitter
|
// rightPanelSplitter
|
||||||
//
|
//
|
||||||
|
@ -276,7 +276,7 @@ namespace SourceGen.AppForms {
|
|||||||
|
|
||||||
private void InitCodeListView() {
|
private void InitCodeListView() {
|
||||||
ListView cv = codeListView;
|
ListView cv = codeListView;
|
||||||
cv.View = View.Details;
|
//cv.View = View.Details;
|
||||||
|
|
||||||
// Create an empty place-holder for the context menu.
|
// Create an empty place-holder for the context menu.
|
||||||
codeListView.ContextMenuStrip = new ContextMenuStrip();
|
codeListView.ContextMenuStrip = new ContextMenuStrip();
|
||||||
@ -1613,7 +1613,7 @@ namespace SourceGen.AppForms {
|
|||||||
mCodeViewSelection = new VirtualListViewSelection();
|
mCodeViewSelection = new VirtualListViewSelection();
|
||||||
mDisplayList = null;
|
mDisplayList = null;
|
||||||
codeListView.VirtualListSize = 0;
|
codeListView.VirtualListSize = 0;
|
||||||
codeListView.Items.Clear();
|
//codeListView.Items.Clear();
|
||||||
ShowNoProject();
|
ShowNoProject();
|
||||||
InvalidateControls(null);
|
InvalidateControls(null);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user