Hex editor - refresh on scroll bar changed & dialog resize

This commit is contained in:
andres.delikat 2011-03-07 01:05:54 +00:00
parent 540af82171
commit 3ec1ed128d
2 changed files with 9 additions and 0 deletions

View File

@ -173,6 +173,7 @@
this.vScrollBar1.Name = "vScrollBar1";
this.vScrollBar1.Size = new System.Drawing.Size(16, 323);
this.vScrollBar1.TabIndex = 0;
this.vScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.vScrollBar1_Scroll);
//
// MemoryViewer
//

View File

@ -12,6 +12,7 @@ namespace BizHawk.MultiClient
public partial class HexEditor : Form
{
//TODO:
//Read only the memory in the visible portion
//Find text box - autohighlights matches, and shows total matches
//Implement Goto address
//Users can customize background, & text colors
@ -195,6 +196,13 @@ namespace BizHawk.MultiClient
private void HexEditor_Resize(object sender, EventArgs e)
{
SetUpScrollBar();
MemoryViewer.Refresh();
}
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
SetUpScrollBar();
MemoryViewer.Refresh();
}
}
}