diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-01 21:53:07 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-12 19:21:09 +0100 |
| commit | bafd3fd3d792b530d39d3af06e087dc63d2a25a2 (patch) | |
| tree | 42f4d533490191a92a13863d07378820b04a7b9c /test/boxtype.cxx | |
| parent | 79832b679f2d195eb3b0f30ca920a857cc133b2b (diff) | |
Add Fl_Scheme_Choice widget and use it in test programs
This widget offers the selection of all known FLTK schemes as a simple
widget based on Fl_Choice.
Some test and demo programs use Fl_Scheme_Choice to enable the developer
or user to switch schemes quickly for comparison.
Todo:
- add features to add new schemes during runtime (partially done)
- update status when the scheme is changed by Fl::scheme("...")
Diffstat (limited to 'test/boxtype.cxx')
| -rw-r--r-- | test/boxtype.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/boxtype.cxx b/test/boxtype.cxx index 29a89c3b6..24d176eb1 100644 --- a/test/boxtype.cxx +++ b/test/boxtype.cxx @@ -19,6 +19,7 @@ #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> #include <FL/Fl_Box.H> +#include <FL/Fl_Scheme_Choice.H> #include <FL/fl_draw.H> int N = 0; @@ -176,6 +177,7 @@ int main(int argc, char ** argv) { bt("FL_GTK_ROUND_DOWN_BOX",FL_GTK_ROUND_DOWN_BOX); bg->end(); window->resizable(window); + Fl_Scheme_Choice scheme_choice(610, 10, 150, 30, "Scheme:"); window->end(); window->show(); return Fl::run(); |
