MessageConfig - use change event on numberics
This commit is contained in:
parent
e7160a7387
commit
8a96f5f2e7
|
@ -530,8 +530,7 @@
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.XNumeric.Click += new System.EventHandler(this.XNumeric_Click);
|
this.XNumeric.ValueChanged += new System.EventHandler(this.XNumeric_Changed);
|
||||||
this.XNumeric.KeyUp += new System.Windows.Forms.KeyEventHandler(this.XNumeric_KeyUp);
|
|
||||||
//
|
//
|
||||||
// YNumeric
|
// YNumeric
|
||||||
//
|
//
|
||||||
|
@ -550,8 +549,7 @@
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.YNumeric.Click += new System.EventHandler(this.YNumeric_Click);
|
this.YNumeric.ValueChanged += new System.EventHandler(this.YNumeric_Changed);
|
||||||
this.YNumeric.KeyUp += new System.Windows.Forms.KeyEventHandler(this.YNumeric_KeyUp);
|
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
|
|
|
@ -203,20 +203,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
SetPositionInfo();
|
SetPositionInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void XNumericChange()
|
|
||||||
{
|
|
||||||
_px = (int)XNumeric.Value;
|
|
||||||
SetPositionLabels();
|
|
||||||
PositionPanel.Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void YNumericChange()
|
|
||||||
{
|
|
||||||
_py = (int)YNumeric.Value;
|
|
||||||
SetPositionLabels();
|
|
||||||
PositionPanel.Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PositionPanel_MouseEnter(object sender, EventArgs e)
|
private void PositionPanel_MouseEnter(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Cursor = Cursors.Hand;
|
Cursor = Cursors.Hand;
|
||||||
|
@ -484,14 +470,18 @@ namespace BizHawk.Client.EmuHawk
|
||||||
PositionPanel.Refresh();
|
PositionPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void XNumeric_Click(object sender, EventArgs e)
|
private void XNumeric_Changed(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
XNumericChange();
|
_px = (int)XNumeric.Value;
|
||||||
|
SetPositionLabels();
|
||||||
|
PositionPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void YNumeric_Click(object sender, EventArgs e)
|
private void YNumeric_Changed(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
YNumericChange();
|
_py = (int)YNumeric.Value;
|
||||||
|
SetPositionLabels();
|
||||||
|
PositionPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ColorPanel_Click(object sender, EventArgs e)
|
private void ColorPanel_Click(object sender, EventArgs e)
|
||||||
|
@ -525,15 +515,5 @@ namespace BizHawk.Client.EmuHawk
|
||||||
SetColorBox();
|
SetColorBox();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void XNumeric_KeyUp(object sender, KeyEventArgs e)
|
|
||||||
{
|
|
||||||
XNumericChange();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void YNumeric_KeyUp(object sender, KeyEventArgs e)
|
|
||||||
{
|
|
||||||
YNumericChange();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue