void SetScrollbars(int horiz_pixels, int vert_pixels, int x_length, int y_length, int x_page, int y_page)
Sets up vertical and/or horizontal scrollbars. The first pair of parameters give the number of pixels per 'scroll step', i.e. amount moved when the up or down scroll arrows are pressed. These may be 0 or less for no scrollbar. The second pair gives the length of scrollbar in scroll steps, which effectively sets the size of the 'virtual canvas'. The third pair gives the number of scroll steps in a 'page', i.e. amount moved when pressing above or below the scrollbar control, or using page up/page down (not yet implemented).
For example, the following gives a canvas horizontal and vertical scrollbars with 20 pixels per scroll step, a size of 50 steps (1000 pixels) in each direction, and 4 steps (80 pixels) to a page.
canvas->SetScrollbars(20, 20, 50, 50, 4, 4);See also wxCanvas::EnableScrolling, wxCanvas::GetScrollUnitsPerPage, wxCanvas::GetVirtualSize.