Add scrolling to map view

This commit is contained in:
Kurt
2015-11-13 20:48:45 -08:00
parent 9e1107278a
commit 66cd56ce7e
2 changed files with 6 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ private void InitializeComponent()
this.PB_Map.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.PB_Map.TabIndex = 2;
this.PB_Map.TabStop = false;
this.PB_Map.MouseEnter += new System.EventHandler(this.focusPanel);
this.PB_Map.MouseMove += new System.Windows.Forms.MouseEventHandler(this.hoverMap);
//
// CHK_AutoDraw

View File

@@ -152,5 +152,10 @@ private void MapPermView_FormClosing(object sender, FormClosingEventArgs e)
Hide();
e.Cancel = true;
}
private void focusPanel(object sender, EventArgs e)
{
PAN_MAP.Focus();
}
}
}