From 3bb6ae8ce3cb3c0eb1c4bda0d66533b7399a63b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?= Date: Thu, 5 Dec 2019 23:07:32 +0000 Subject: [PATCH] add a small explanation on the parameters window. git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk@1843 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69 --- .../sources/gui/parameters.cxx | 15 ++++++++++++--- .../sources/gui/parameters_gui.h | 3 ++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/HxCFloppyEmulator_software/sources/gui/parameters.cxx b/HxCFloppyEmulator_software/sources/gui/parameters.cxx index 32ac7f52..74fde809 100644 --- a/HxCFloppyEmulator_software/sources/gui/parameters.cxx +++ b/HxCFloppyEmulator_software/sources/gui/parameters.cxx @@ -157,18 +157,27 @@ Parameters_box::~Parameters_box() } Parameters_box::Parameters_box() - : Fl_Double_Window(640,400) + : Fl_Double_Window(740,480) { editboxarray = NULL; - xsize = 640; - ysize = 400; + xsize = 740; + ysize = 480; create_editbox(); button_ok = new Fl_Button(5, ysize-35, 80, 30, "Close" ); button_ok->callback(close_parameters,0); + hlptxt = new Fl_Output(5 + 80 + 10, ysize-40, xsize-90, 40); + hlptxt->box(FL_NO_BOX); + hlptxt->labeltype(FL_NO_LABEL); + hlptxt->textsize(12); + hlptxt->align(Fl_Align(FL_ALIGN_CENTER)); + hlptxt->wrap(FL_INPUT_WRAP); + hlptxt->readonly(FL_INPUT_READONLY); + hlptxt->static_value("Advanced parameters to tweak the libhxcfe behavior."); + label("Parameters"); end(); diff --git a/HxCFloppyEmulator_software/sources/gui/parameters_gui.h b/HxCFloppyEmulator_software/sources/gui/parameters_gui.h index ce7faf06..716f5e34 100644 --- a/HxCFloppyEmulator_software/sources/gui/parameters_gui.h +++ b/HxCFloppyEmulator_software/sources/gui/parameters_gui.h @@ -27,7 +27,7 @@ #include #include - +#include typedef struct params_editbox_ { @@ -39,6 +39,7 @@ class Parameters_box : public Fl_Double_Window { Fl_Button *button_ok; Fl_Double_Window *window; + Fl_Output *hlptxt; int xsize,ysize; public: