Improve behaviour of scrolling through a ribbon gallery.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Peter Cawley
2010-11-06 23:46:25 +00:00
parent 76b1a2c26e
commit 32eb560338
3 changed files with 46 additions and 4 deletions

View File

@@ -239,6 +239,18 @@ public:
direction, @false if it did not scroll.
*/
virtual bool ScrollLines(int lines);
/**
Scroll the gallery contents by some fine-grained amount.
@param pixels
Positive values scroll toward the end of the gallery, while negative
values scroll toward the start.
@return @true if the gallery scrolled at least one pixel in the given
direction, @false if it did not scroll.
*/
bool ScrollPixels(int pixels);
/**
Scroll the gallery to ensure that the given item is visible.