FLTK logo

[master] c45bf57 - Fixes #369

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] c45bf57 - Fixes #369 "Greg Ercolano" Jan 13, 2022  
 
commit c45bf57c8fcaf9c18f52f9d91dc97527e74d3d42
Author:     Greg Ercolano <erco@seriss.com>
AuthorDate: Thu Jan 13 18:06:40 2022 -0800
Commit:     Greg Ercolano <erco@seriss.com>
CommitDate: Thu Jan 13 18:06:40 2022 -0800

    Fixes #369

 documentation/src/input_choice.png | Bin 16484 -> 24263 bytes
 src/Fl_Input_Choice.cxx            |  11 ++++-------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git documentation/src/input_choice.png documentation/src/input_choice.png
index 42cd6e7..03911fd 100644
Binary files documentation/src/input_choice.png and documentation/src/input_choice.png differ
diff --git src/Fl_Input_Choice.cxx src/Fl_Input_Choice.cxx
index 781e822..4cf8712 100644
--- src/Fl_Input_Choice.cxx
+++ src/Fl_Input_Choice.cxx
@@ -33,7 +33,7 @@
   \brief A combination of the input widget and a menu button.
 
   \image html input_choice.png
-  \image latex input_choice.png "Fl_Input_Choice widget" width=6cm
+  \image latex input_choice.png "Fl_Input_Choice widget" width=12cm
 
   The user can either type into the input area, or use the
   menu button chooser on the right to choose an item which loads
@@ -135,7 +135,7 @@ Fl_Input_Choice::InputMenuButton::InputMenuButton(int x,int y,int w,int h,const
 /** Draws the private menu button. */
 
 void Fl_Input_Choice::InputMenuButton::draw() {
-  draw_box(FL_UP_BOX, color());
+  draw_box();
   fl_color(active_r() ? labelcolor() : fl_inactive(labelcolor()));
   int xc = x()+w()/2, yc=y()+h()/2;
   fl_polygon(xc-5,yc-3,xc+5,yc-3,xc,yc+3);
@@ -255,15 +255,12 @@ Fl_Input_Choice::Fl_Input_Choice (int X, int Y, int W, int H, const char *L)
 : Fl_Group(X,Y,W,H,L) {
   Fl_Group::box(FL_DOWN_BOX);
   align(FL_ALIGN_LEFT);                                 // default like Fl_Input
-  inp_ = new Fl_Input(inp_x(), inp_y(),
-                      inp_w(), inp_h());
+  inp_ = new Fl_Input(inp_x(), inp_y(), inp_w(), inp_h());
   inp_->callback(inp_cb, (void*)this);
   inp_->box(FL_FLAT_BOX);                               // cosmetic
   inp_->when(FL_WHEN_CHANGED|FL_WHEN_NOT_CHANGED);
-  menu_ = new InputMenuButton(menu_x(), menu_y(),
-                              menu_w(), menu_h());
+  menu_ = new InputMenuButton(menu_x(), menu_y(), menu_w(), menu_h());
   menu_->callback(menu_cb, (void*)this);
-  menu_->box(FL_FLAT_BOX);                              // cosmetic
   end();
 }
 
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.