swap the position of listbox::scorll's two parameters
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user