Fix pop up location with the "Go To Address" feature in Hex Editor and Ram Search

This commit is contained in:
adelikat 2013-10-07 19:33:06 +00:00
parent efc1a3550f
commit 012fb6d464
2 changed files with 8 additions and 0 deletions

View File

@ -523,9 +523,16 @@ namespace BizHawk.MultiClient
else return 8;
}
private Point GetPromptPoint()
{
Point p = new Point(MemoryViewerBox.Location.X + 30, MemoryViewerBox.Location.Y + 30);
return PointToScreen(p);
}
public void GoToSpecifiedAddress()
{
InputPrompt i = new InputPrompt {Text = "Go to Address"};
i._Location = GetPromptPoint();
i.SetMessage("Enter a hexadecimal value");
Global.Sound.StopSound();
i.ShowDialog();

View File

@ -766,6 +766,7 @@ namespace BizHawk.MultiClient
{
WatchListView.SelectedIndices.Clear();
InputPrompt i = new InputPrompt { Text = "Go to Address" };
i._Location = GetPromptPoint();
i.SetMessage("Enter a hexadecimal value");
Global.Sound.StopSound();
i.ShowDialog();