mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Fixed alignment of Fl_Choice label with the text in the pop-up menu
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Choice.cxx,v 1.10 1999/03/07 08:51:42 bill Exp $"
|
// "$Id: Fl_Choice.cxx,v 1.10.2.1 1999/03/13 20:45:20 bill Exp $"
|
||||||
//
|
//
|
||||||
// Choice widget for the Fast Light Tool Kit (FLTK).
|
// Choice widget for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -43,7 +43,7 @@ void Fl_Choice::draw() {
|
|||||||
if (active_r()) m.activate(); else m.deactivate();
|
if (active_r()) m.activate(); else m.deactivate();
|
||||||
fl_draw_shortcut = 2; // hack value to make '&' disappear
|
fl_draw_shortcut = 2; // hack value to make '&' disappear
|
||||||
int BW = Fl::box_dx(box());
|
int BW = Fl::box_dx(box());
|
||||||
m.draw( x()+BW+3, y(), w()-2*BW-2-3*H, h(), this);
|
m.draw( x()+BW, y(), w()-2*BW-3*H, h(), this);
|
||||||
fl_draw_shortcut = 0;
|
fl_draw_shortcut = 0;
|
||||||
}
|
}
|
||||||
draw_label();
|
draw_label();
|
||||||
@@ -88,5 +88,5 @@ int Fl_Choice::handle(int e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Choice.cxx,v 1.10 1999/03/07 08:51:42 bill Exp $".
|
// End of "$Id: Fl_Choice.cxx,v 1.10.2.1 1999/03/13 20:45:20 bill Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user