summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MainWindow.cpp5
-rw-r--r--MainWindow.h1
2 files changed, 4 insertions, 2 deletions
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);
diff --git a/MainWindow.h b/MainWindow.h
index f5de5a1..484ebaa 100644
--- a/MainWindow.h
+++ b/MainWindow.h
@@ -111,6 +111,7 @@ class MainWindow : public FXMainWindow
FXVerticalFrame *optionsFrame;
FXScrollWindow *scroll_area;
FXScrollWindow *toolbox_scroll_area;
+ FXScrollWindow *options_scroll_area;
FXCanvas *canvas;
FXBMPImage *canvas_image;
FXApp *app;