ide: Fixed initial sync in HexView #1339

git-svn-id: svn://ultimatepp.org/upp/trunk@9202 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-11-22 07:54:23 +00:00
parent c819577e15
commit 7d17505cfe
2 changed files with 11 additions and 3 deletions

View file

@ -233,6 +233,8 @@ void HexView::SetTotal(int64 _total)
total = _total;
Layout();
SetSb();
Refresh();
RefreshInfo();
}
void HexView::SetSc(int64 address)
@ -252,6 +254,13 @@ void HexView::Scroll()
Refresh();
}
void HexView::RefreshInfo()
{
info.SetPos(cursor, IsLongMode());
for(int i = 0; i < 80; i++)
info.Set(i, Byte(cursor + i));
}
void HexView::SetCursor(int64 _cursor)
{
cursor = _cursor;
@ -273,9 +282,7 @@ void HexView::SetCursor(int64 _cursor)
sc = 0;
SetSb();
Refresh();
info.SetPos(cursor, IsLongMode());
for(int i = 0; i < 80; i++)
info.Set(i, Byte(cursor + i));
RefreshInfo();
}
void HexView::LeftDown(Point p, dword)