Is it possible to change the 'pagesize' of the scrollbar of
a wxScrolledWindow?
By 'pagesize' I mean the amount of scrolling performed when the
part of the scrollbar is clicked which normally scrolls
a page instead of a line?
> Is it possible to change the 'pagesize' of the scrollbar of
> a wxScrolledWindow?
I may be mistaken, but I thought that is what the "noUnitsX" and "no UnitsY"
parameters in wxScrolledWindow::SetScrollbars were for.
That's what I thought first, but it's not the case.
The 'pagesize' also depends on the window size - I will
try to find out which formula is used, and then try to
adjust the scrollbar accordingly.
> > Is it possible to change the 'pagesize' of the scrollbar of
> > a wxScrolledWindow?
> I may be mistaken, but I thought that is what the "noUnitsX" and "no
UnitsY"
> parameters in wxScrolledWindow::SetScrollbars were for.
That's what I thought first, but it's not the case.
The 'pagesize' also depends on the window size - I will
try to find out which formula is used, and then try to
adjust the scrollbar accordingly.
Right. The pixelsPerUnit parameters are the number of pixels to scroll when
clicking on the up or down arrows in the scrollbar. The noUnits specify how
many of these there are. IIRC, the amount scrolled when clicking the in the
body of the scroll bar is the number of units that are visible, give or take
a bit.
If this is not what you need then you might try catching
EVT_SCROLLWIN_PAGEDOWN and EVT_SCROLLWIN_PAGEUP and then explicitly
scrolling to the position you want.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!