diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-08-27 15:13:32 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-08-27 15:13:32 +0200 |
| commit | ec05f78d98d8e38ea34eb1bd73647fa5b8b35f81 (patch) | |
| tree | 64768c2ff44f44200e3d9d8463924fc9450be973 /src/Fl_Choice.cxx | |
| parent | 5879e7fae7d34c037f2ac02c6c7fca86c42a186d (diff) | |
Adding horiizonatl and vertical label margin
- sizeof(Fl_Widget) not increased
- label positions can be adjusted
- try it out in test/label app
- full support in FLUD
Diffstat (limited to 'src/Fl_Choice.cxx')
| -rw-r--r-- | src/Fl_Choice.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Choice.cxx b/src/Fl_Choice.cxx index 3ba0a2c7d..e5a0276af 100644 --- a/src/Fl_Choice.cxx +++ b/src/Fl_Choice.cxx @@ -113,7 +113,7 @@ void Fl_Choice::draw() { l.font = m.labelsize_ || m.labelfont_ ? m.labelfont_ : textfont(); l.size = m.labelsize_ ? m.labelsize_ : textsize(); l.color= m.labelcolor_ ? m.labelcolor_ : textcolor(); - l.spacing = 0; + l.h_margin_ = l.v_margin_ = l.spacing = 0; if (!m.active()) l.color = fl_inactive((Fl_Color)l.color); fl_draw_shortcut = 2; // hack value to make '&' disappear l.draw(xx+3, yy, ww>6 ? ww-6 : 0, hh, FL_ALIGN_LEFT); |
