From cfc54a3b190dd7e85d6e2a313ab67d3ded4a4ab8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 14 Aug 2024 01:45:20 +0200 Subject: Adding Fl_Widget::label_image_spacing() (#1039) - May need a better method name. - This makes the gap between the image in a label and the label text user settable. - Can be tested using test/label app --- src/Fl_Choice.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Fl_Choice.cxx') diff --git a/src/Fl_Choice.cxx b/src/Fl_Choice.cxx index a4c6b0a2b..3ba0a2c7d 100644 --- a/src/Fl_Choice.cxx +++ b/src/Fl_Choice.cxx @@ -113,6 +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; 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); -- cgit v1.2.3