diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-09-03 00:09:32 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-09-03 00:09:40 +0200 |
| commit | 5e8adebac2899d60fffc53d4692bc4972abcf795 (patch) | |
| tree | b79581c85dc80c4d132390de42c15faee8f3d4c9 /fluid/widget_panel.cxx | |
| parent | 502fa72eb472382cc47964874893085fb88116f5 (diff) | |
Adds compact buttons feature to create keypads.
See test/buttons for an example.
Diffstat (limited to 'fluid/widget_panel.cxx')
| -rw-r--r-- | fluid/widget_panel.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx index 4bb22b797..12976268b 100644 --- a/fluid/widget_panel.cxx +++ b/fluid/widget_panel.cxx @@ -803,10 +803,16 @@ sized to fit the container."); } // Fl_Menu_Button* o o->end(); } // Fl_Group* o - { Fl_Box* o = new Fl_Box(95, 140, 300, 40); + { Fl_Box* o = new Fl_Box(95, 165, 300, 40); o->labelsize(11); Fl_Group::current()->resizable(o); } // Fl_Box* o + { Fl_Light_Button* o = new Fl_Light_Button(95, 140, 90, 20, "Compact"); + o->tooltip("use compact box types for closely set buttons"); + o->selection_color((Fl_Color)1); + o->labelsize(11); + o->callback((Fl_Callback*)compact_cb); + } // Fl_Light_Button* o o->end(); } // Fl_Group* o { Fl_Group* o = new Fl_Group(10, 30, 400, 330, "C++"); |
