--- nono/wx/wxmonitor.cpp 2026/04/29 17:04:28 1.1 +++ nono/wx/wxmonitor.cpp 2026/04/29 17:04:37 1.1.1.2 @@ -1,9 +1,9 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // -#include "wxheader.h" #include "wxmonitor.h" #include "wxtextscreen.h" @@ -24,12 +24,17 @@ WXMonitorWindow::WXMonitorWindow(wxWindo object = obj; assert(object); + wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL); + // テキストスクリーン TextScreen& monitor = object->monitor; int col = monitor.GetCol(); int row = monitor.GetRow(); const uint16 *textbuf = monitor.GetBuf(); screen = new WXTextScreen(this, col, row, textbuf); + topsizer->Add(screen, BorderFlags); + + SetSizer(topsizer); // 大きさをそれに固定 Layout();