--- nono/wx/wxmonitor.cpp 2026/04/29 17:04:39 1.1.1.3 +++ nono/wx/wxmonitor.cpp 2026/04/29 17:05:08 1.1.1.6 @@ -4,37 +4,21 @@ // Licensed under nono-license.txt // -#include "wxmonitor.h" -#include "wxtextscreen.h" - // // モニターウィンドウ // +#include "wxmonitor.h" +#include "wxtextscreen.h" + // コンストラクタ -WXMonitorWindow::WXMonitorWindow(wxWindow *parent, wxWindowID id, - const wxString& name, IMonitor& monitor_) - : inherited(parent, id, name) +WXMonitorWindow::WXMonitorWindow(wxWindow *parent, const wxString& name, + Monitor& monitor_) + : inherited(parent, wxID_ANY, name) { - // ↓+------------------+ - // | 上余白 | - // |左+------------+右| - // |余| TextScreen |余| - // |白+------------+白| - // | 下余白 | - // +------------------+ - - wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL); - // テキストスクリーン screen = new WXTextScreen(this, monitor_); - topsizer->Add(screen, 0, wxEXPAND | wxALL, DefaultPadding); - - SetSizer(topsizer); - - // 大きさをそれに固定 - Layout(); - Fit(); + DoSize(); } // デストラクタ