diff options
| author | Greg Ercolano <erco@seriss.com> | 2022-01-13 18:06:40 -0800 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2022-01-13 18:06:40 -0800 |
| commit | c45bf57c8fcaf9c18f52f9d91dc97527e74d3d42 (patch) | |
| tree | 7b16a500da6c4a2a00fe1216ea9e080c50b91819 /src/Fl_Input_Choice.cxx | |
| parent | 9c55ad4273ff3e4327daaaf28fc06bf6bbd4a645 (diff) | |
Fixes #369
Diffstat (limited to 'src/Fl_Input_Choice.cxx')
| -rw-r--r-- | src/Fl_Input_Choice.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Fl_Input_Choice.cxx b/src/Fl_Input_Choice.cxx index 781e82277..4cf8712e6 100644 --- a/src/Fl_Input_Choice.cxx +++ b/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(); } |
