diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-10 14:40:18 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-10 14:40:18 +0000 |
| commit | a7dbe1ff3d427b8c48f42c1ede596266028cea57 (patch) | |
| tree | fe9fc8bd487040dca75a9b6a68b0b541553ca019 /src/Fl_Choice.cxx | |
| parent | bb21ad727029ca68db0c7bfe43d54b793e6182a7 (diff) | |
Menu patches from Bill...
git-svn-id: file:///fltk/svn/fltk/trunk@82 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Choice.cxx')
| -rw-r--r-- | src/Fl_Choice.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Choice.cxx b/src/Fl_Choice.cxx index 14400fc93..45f5f172f 100644 --- a/src/Fl_Choice.cxx +++ b/src/Fl_Choice.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Choice.cxx,v 1.3 1998/10/21 14:20:00 mike Exp $" +// "$Id: Fl_Choice.cxx,v 1.4 1998/11/10 14:40:17 mike Exp $" // // Choice widget for the Fast Light Tool Kit (FLTK). // @@ -41,7 +41,8 @@ void Fl_Choice::draw() { fl_font(textfont(),textsize(),default_font(),default_size()); fl_color(active_r() ? textcolor() : inactive(textcolor())); fl_draw_shortcut = 2; // hack value to make '&' disappear - fl_draw(text(),x()+6,y(),w()-6,h(),FL_ALIGN_LEFT); + int BW = Fl::box_dx(box()); + fl_draw(text(), x()+BW+3, y(), w()-2*BW-2, h(), FL_ALIGN_LEFT); fl_draw_shortcut = 0; draw_label(); } @@ -84,5 +85,5 @@ int Fl_Choice::handle(int e) { } // -// End of "$Id: Fl_Choice.cxx,v 1.3 1998/10/21 14:20:00 mike Exp $". +// End of "$Id: Fl_Choice.cxx,v 1.4 1998/11/10 14:40:17 mike Exp $". // |
