swap the position of listbox::scorll's two parameters

This commit is contained in:
Jinhao
2015-11-05 00:43:27 +08:00
parent 9844792c54
commit 0ddee51568
2 changed files with 2 additions and 2 deletions

View File

@@ -557,7 +557,7 @@ By \a clicking on one header the list get \a reordered, first up, and then down
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 /// Scrolls the view to the first or last item of a specified category
void scroll(size_type cat_pos, bool to_bottom); void scroll(bool to_bottom, size_type cat_pos = ::nana::npos);
/// Appends a new column with a header text and the specified width at the end, and return it position /// 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); size_type append_header(nana::string header_text, unsigned width = 120);

View File

@@ -4230,7 +4230,7 @@ namespace nana
_m_ess().set_auto_draw(ad); _m_ess().set_auto_draw(ad);
} }
void listbox::scroll(size_type cat_pos, bool to_bottom) void listbox::scroll(bool to_bottom, size_type cat_pos)
{ {
auto & ess = _m_ess(); auto & ess = _m_ess();
auto cats = ess.lister.size_categ(); auto cats = ess.lister.size_categ();