| 2250 | namespace list_box_helper{ |
| 2251 | template <typename S> |
| 2252 | list_box<S>:: |
| 2253 | list_box( |
| 2254 | drawable_window& w |
| 2255 | ) : |
| 2256 | scrollable_region(w,MOUSE_WHEEL|MOUSE_CLICK), |
| 2257 | ms_enabled(false), |
| 2258 | last_selected(0) |
| 2259 | { |
| 2260 | set_vertical_scroll_increment(mfont->height()); |
| 2261 | set_horizontal_scroll_increment(mfont->height()); |
| 2262 | |
| 2263 | style.reset(new list_box_style_default()); |
| 2264 | enable_events(); |
| 2265 | } |
| 2266 | |
| 2267 | // ---------------------------------------------------------------------------------------- |
| 2268 | |