add a listbox::scroll() to scroll the view to the top or bottom

This commit is contained in:
Jinhao
2015-11-04 01:21:35 +08:00
parent 29eddaa97f
commit 9844792c54
2 changed files with 85 additions and 3 deletions

View File

@@ -554,7 +554,10 @@ By \a clicking on one header the list get \a reordered, first up, and then down
listbox(window, bool visible);
listbox(window, const rectangle& = {}, bool visible = true);
void auto_draw(bool); ///< Set state: Redraw automatically after an operation?
void auto_draw(bool); ///< Set state: Redraw automatically after an operation
/// Scrolls the view to the first or last item of a specified category
void scroll(size_type cat_pos, bool to_bottom);
/// Appends a new column with a header text and the specified width at the end, and return it position
size_type append_header(nana::string header_text, unsigned width = 120);