--- nono/wx/wxmpumonitor.cpp 2026/04/29 17:05:08 1.1.1.5 +++ nono/wx/wxmpumonitor.cpp 2026/04/29 17:05:12 1.1.1.6 @@ -10,7 +10,6 @@ #include "wxmpumonitor.h" #include "fontmanager.h" -#include "wxtextscreen.h" #include "m88200.h" // @@ -22,8 +21,8 @@ WXCacheWindow::WXCacheWindow(wxWindow *p Monitor& monitor_) : inherited(parent, name, monitor_) { - // テキストスクリーンパネルに送られるマウスイベントをこちらで処理する - screen->Connect(wxEVT_LEFT_DOWN, + // モニタパネルに送られるマウスイベントをこちらで処理する + monpanel->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(WXCacheWindow::OnLeftDown), NULL, this); } @@ -39,7 +38,7 @@ WXCacheWindow::OnLeftDown(wxMouseEvent& const wxPoint& pos = event.GetPosition(); // テキストの桁数、行数にする - wxPoint tpos = screen->GetTextPosition(pos); + wxPoint tpos = monpanel->GetTextPosition(pos); int x = tpos.x; int y = tpos.y; @@ -51,12 +50,12 @@ WXCacheWindow::OnLeftDown(wxMouseEvent& if (x % 5 < 4) { // このモニタは userdata を現在のセット番号として使っている int setidx = y * 16 + (x / 5); - screen->SetUserData(setidx); + monpanel->SetUserData(setidx); } } // 画面更新 - screen->DoRefresh(); + monpanel->DoRefresh(); event.Skip(); }