From 037f27434849506d92f844354f491ddf967d5c51 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Fri, 12 Jun 2020 14:56:11 +0930 Subject: make scroll window same color as frame --- MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MainWindow.cpp') diff --git a/MainWindow.cpp b/MainWindow.cpp index db72c9e..61cbac9 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -30,7 +30,7 @@ FXDEFMAP(MainWindow) MainWindow_Map[]= FXIMPLEMENT(MainWindow, FXMainWindow, MainWindow_Map, ARRAYNUMBER(MainWindow_Map)) MainWindow::MainWindow(FXApp *a) - : FXMainWindow(a, "foxminesweeper", nullptr, nullptr, DECOR_ALL, 0,0,200,150) + : FXMainWindow(a, "foxminesweeper", nullptr, nullptr, DECOR_ALL, 0,0, 500, 500) { board = nullptr; matrix = nullptr; @@ -90,6 +90,7 @@ MainWindow::create_ui() new FXHorizontalSeparator(canvasFrame, SEPARATOR_GROOVE|LAYOUT_FILL_X); scroll_area = new FXScrollWindow(canvasFrame, FX::SCROLLERS_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN); + scroll_area->setBackColor(canvasFrame->getBackColor()); // RIGHT pane for the buttons buttonFrame=new FXVerticalFrame(contents, FRAME_SUNKEN|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT, 0, 0, 0, 0, 10, 10, 10, 10); -- cgit v1.2.3