replace the marker list with an input roll instead of virtuallistview, part of this commit was loosing the item active event, it needs to be replaced with a double click event

This commit is contained in:
adelikat 2014-08-23 19:01:47 +00:00
parent b66db36046
commit f28f47b941
2 changed files with 3 additions and 12 deletions

View File

@ -30,7 +30,7 @@
{ {
this.AddBtn = new System.Windows.Forms.Button(); this.AddBtn = new System.Windows.Forms.Button();
this.RemoveBtn = new System.Windows.Forms.Button(); this.RemoveBtn = new System.Windows.Forms.Button();
this.MarkerView = new BizHawk.Client.EmuHawk.VirtualListView(); this.MarkerView = new InputRoll();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.SuspendLayout(); this.SuspendLayout();
@ -63,26 +63,18 @@
this.MarkerView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.MarkerView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.MarkerView.BlazingFast = false;
this.MarkerView.CheckBoxes = true;
this.MarkerView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.MarkerView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1, this.columnHeader1,
this.columnHeader2}); this.columnHeader2});
this.MarkerView.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MarkerView.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.MarkerView.FullRowSelect = true; this.MarkerView.FullRowSelect = true;
this.MarkerView.GridLines = true; this.MarkerView.GridLines = true;
this.MarkerView.HideSelection = false;
this.MarkerView.ItemCount = 0; this.MarkerView.ItemCount = 0;
this.MarkerView.Location = new System.Drawing.Point(3, 0); this.MarkerView.Location = new System.Drawing.Point(3, 0);
this.MarkerView.Name = "MarkerView"; this.MarkerView.Name = "MarkerView";
this.MarkerView.SelectAllInProgress = false;
this.MarkerView.selectedItem = -1;
this.MarkerView.Size = new System.Drawing.Size(198, 209); this.MarkerView.Size = new System.Drawing.Size(198, 209);
this.MarkerView.TabIndex = 5; this.MarkerView.TabIndex = 5;
this.MarkerView.TabStop = false; this.MarkerView.TabStop = false;
this.MarkerView.UseCompatibleStateImageBehavior = false;
this.MarkerView.View = System.Windows.Forms.View.Details;
this.MarkerView.ItemActivate += new System.EventHandler(this.MarkerView_ItemActivate);
this.MarkerView.SelectedIndexChanged += new System.EventHandler(this.MarkerView_SelectedIndexChanged); this.MarkerView.SelectedIndexChanged += new System.EventHandler(this.MarkerView_SelectedIndexChanged);
// //
// columnHeader1 // columnHeader1
@ -111,7 +103,7 @@
#endregion #endregion
private VirtualListView MarkerView; private InputRoll MarkerView;
public System.Windows.Forms.ColumnHeader columnHeader1; public System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2; private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.Button AddBtn; private System.Windows.Forms.Button AddBtn;

View File

@ -31,9 +31,8 @@ namespace BizHawk.Client.EmuHawk
public void UpdateValues() public void UpdateValues()
{ {
MarkerView.BlazingFast = true;
MarkerView.ItemCount = Tastudio.CurrentMovie.Markers.Count; MarkerView.ItemCount = Tastudio.CurrentMovie.Markers.Count;
MarkerView.BlazingFast = false; MarkerView.Refresh();
} }
private void MarkerView_QueryItemBkColor(int index, int column, ref Color color) private void MarkerView_QueryItemBkColor(int index, int column, ref Color color)