--- nono/wx/wxdumpmonitor.cpp 2026/04/29 17:05:09 1.1.1.11 +++ nono/wx/wxdumpmonitor.cpp 2026/04/29 17:05:12 1.1.1.12 @@ -9,7 +9,7 @@ // #include "wxdumpmonitor.h" -#include "wxtextscreen.h" +#include "wxmonitor.h" #include "bus.h" #include "debugger.h" @@ -20,7 +20,7 @@ enum { ID_local_end, // 最後に置く (チェック用) }; -static_assert(ID_local_end <= (int)IDGROUP_MEMDUMP_END, "ID exceeded"); +static_assert(ID_local_end - 1 <= (int)IDGROUP_MEMDUMP_END, "ID exceeded"); // イベントテーブル wxBEGIN_EVENT_TABLE(WXMemdumpWindow, inherited) @@ -32,7 +32,8 @@ wxEND_EVENT_TABLE() // コンストラクタ // (タイトルは UpdateAddr() でセットする) WXMemdumpWindow::WXMemdumpWindow(wxWindow *parent, int idx_) - : inherited(parent, wxID_ANY, wxEmptyString) + : inherited(parent, wxID_ANY, wxEmptyString, + DEFAULT_STYLE | wxRESIZE_BORDER) { idx = idx_; @@ -69,7 +70,7 @@ WXMemdumpWindow::WXMemdumpWindow(wxWindo ctrlpanel->SetSizer(ctrlbox); ctrlbox->SetSizeHints(ctrlpanel); - screen = new WXTextScreen(this, debugger_memdump_monitor(idx)); + screen = new WXMonitorPanel(this, debugger_memdump_monitor(idx)); topsizer->Add(screen, 1, wxEXPAND); SetSizer(topsizer); @@ -88,6 +89,13 @@ WXMemdumpWindow::~WXMemdumpWindow() { } +bool +WXMemdumpWindow::Layout() +{ + // 縦リサイズ可能レイアウト + return LayoutTextVResize(screen, fixed_height); +} + // テキスト入力イベント void WXMemdumpWindow::OnTextEnter(wxCommandEvent& event)