In this tutorial, you will learn how to scroll content in wxWidgets. We'll start with simple examples of adding the scrollbars to UI managed by wxWidgets' Sizers architecture, then move on to scrolling controls with absolute positions. Next, we'll tackle scrolling custom controls and building a scrollable and zoomable image viewer. Finally, for the most advanced example, we will learn how to perform hit tests and handle mouse events for objects on a scrolled and zoomed canvas.
Source code: https://github.com/lszl84/wx_scrollba...
0:00 Intro
1:40 Scrolling with Sizers
2:55 Absolute Positioning and Scrolling
4:20 Scrolling and Zooming an Image
13:00 The Rectangles Example
17:02 Scrolling the Canvas
18:18 Zooming the Canvas
20:43 Fixing the Mouse Events
23:37 Centering the Canvas After Zoom