From 03e05c2ad448653764ec3d4c3d217f9598d2af15 Mon Sep 17 00:00:00 2001 From: fenugrec Date: Mon, 19 Mar 2018 20:14:35 -0400 Subject: [PATCH] status bar : show block bounds and size in hex too --- src/HexEditor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/HexEditor.cpp b/src/HexEditor.cpp index 7e88d00b..4f8c172f 100644 --- a/src/HexEditor.cpp +++ b/src/HexEditor.cpp @@ -1415,8 +1415,11 @@ void HexEditor::UpdateCursorLocation( bool force ) { statusbar->SetStatusText(_("Block Size: N/A") ,4); } else { - statusbar->SetStatusText(wxString::Format(_("Selected Block: %" wxLongLongFmtSpec "u -> %" wxLongLongFmtSpec "u"),select->GetStart(),select->GetEnd()), 3); - statusbar->SetStatusText(wxString::Format(_("Block Size: %" wxLongLongFmtSpec "u"), select->GetSize()), 4); + statusbar->SetStatusText(wxString::Format(_("Selected Block: %" wxLongLongFmtSpec "u -> %" wxLongLongFmtSpec "u" \ + " (0x%" wxLongLongFmtSpec "X -> 0x%" wxLongLongFmtSpec "X)"), \ + select->GetStart(),select->GetEnd(),select->GetStart(),select->GetEnd()), 3); + statusbar->SetStatusText(wxString::Format(_("Block Size: %" wxLongLongFmtSpec "u" \ + " (0x%" wxLongLongFmtSpec "X)"), select->GetSize(), select->GetSize()), 4); } } #endif // wxUSE_STATUSBAR