From 046f19bc46bfd76de83c7a85d7651e07936ef1e4 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Fri, 26 Jun 2020 23:08:24 +0930 Subject: GUI: options now scroll --- MainWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MainWindow.cpp') diff --git a/MainWindow.cpp b/MainWindow.cpp index ec4c46c..40bb384 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -118,8 +118,9 @@ MainWindow::create_ui() canvas_image = new FXBMPImage(app, NULL, 0, 2048, 2048); - - optionsFrame = new FXVerticalFrame(contents, FRAME_SUNKEN|LAYOUT_FILL_Y|LAYOUT_TOP, 0, 0, 0, 0, 10, 10, 10, 10); + /* options */ + options_scroll_area = new FXScrollWindow(contents, FX::SCROLLERS_NORMAL|LAYOUT_FILL_Y|LAYOUT_FIX_WIDTH, 0, 0, 123); + optionsFrame = new FXVerticalFrame(options_scroll_area, FRAME_SUNKEN|LAYOUT_FILL_Y|LAYOUT_TOP, 0, 0, 0, 0, 10, 10, 10, 10); new FXLabel(optionsFrame, "Options", NULL, JUSTIFY_CENTER_X|LAYOUT_FILL_X); new FXHorizontalSeparator(optionsFrame, SEPARATOR_RIDGE|LAYOUT_FILL_X); -- cgit v1.2.3