mirror of https://github.com/fltk/fltk
Always draw a box around the current browser selection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
a73c7f58e6
commit
ca5f67d6b3
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// "$Id: Fl_Browser_.cxx,v 1.10.2.8 2000/01/20 06:14:31 bill Exp $"
|
||||
// "$Id: Fl_Browser_.cxx,v 1.10.2.9 2000/03/15 19:14:57 mike Exp $"
|
||||
//
|
||||
// Base Browser widget class for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
|
@ -319,6 +319,7 @@ J1:
|
|||
fl_rect(X+1, yy+Y, W-2, hh);
|
||||
}
|
||||
item_draw(l, X-hposition_, yy+Y, W+hposition_, hh);
|
||||
if (l == selection_) fl_rect(X, yy+Y, W, hh);
|
||||
int w = item_width(l);
|
||||
if (w > max_width) {max_width = w; max_width_item = l;}
|
||||
}
|
||||
|
@ -700,5 +701,5 @@ void Fl_Browser_::item_select(void*, int) {}
|
|||
int Fl_Browser_::item_selected(void* l) const {return l==selection_;}
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Browser_.cxx,v 1.10.2.8 2000/01/20 06:14:31 bill Exp $".
|
||||
// End of "$Id: Fl_Browser_.cxx,v 1.10.2.9 2000/03/15 19:14:57 mike Exp $".
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue