mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 13:57:14 -05:00
Add scrolling to map view
This commit is contained in:
1
pk3DS/Subforms/MapPermView.Designer.cs
generated
1
pk3DS/Subforms/MapPermView.Designer.cs
generated
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user