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/alignment_panel.cxx | |
| parent | 502fa72eb472382cc47964874893085fb88116f5 (diff) | |
Adds compact buttons feature to create keypads.
See test/buttons for an example.
Diffstat (limited to 'fluid/alignment_panel.cxx')
| -rw-r--r-- | fluid/alignment_panel.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx index b3df61cfe..29f21fd4c 100644 --- a/fluid/alignment_panel.cxx +++ b/fluid/alignment_panel.cxx @@ -1239,18 +1239,21 @@ ped using octal notation `\\0123`. If this option is checked, Fluid will write\ { preset_choice[0] = new Fl_Button(85, 107, 78, 20, "Application"); preset_choice[0]->type(102); preset_choice[0]->value(1); + preset_choice[0]->compact(1); preset_choice[0]->selection_color(FL_DARK2); preset_choice[0]->labelsize(11); preset_choice[0]->callback((Fl_Callback*)edit_layout_preset_cb, (void*)(0)); } // Fl_Button* preset_choice[0] { preset_choice[1] = new Fl_Button(163, 107, 79, 20, "Dialog"); preset_choice[1]->type(102); + preset_choice[1]->compact(1); preset_choice[1]->selection_color(FL_DARK2); preset_choice[1]->labelsize(11); preset_choice[1]->callback((Fl_Callback*)edit_layout_preset_cb, (void*)(1)); } // Fl_Button* preset_choice[1] { preset_choice[2] = new Fl_Button(242, 107, 78, 20, "Toolbox"); preset_choice[2]->type(102); + preset_choice[2]->compact(1); preset_choice[2]->selection_color(FL_DARK2); preset_choice[2]->labelsize(11); preset_choice[2]->callback((Fl_Callback*)edit_layout_preset_cb, (void*)(2)); |
