Learn how to program cross platform graphical user interfaces in C++ using wxWidgets.
This video is about mouse events. We cover what they are, how to use them and what to be aware of. There is also a little bonus tip on how to fix a flickering control!
wxWidgets website:https://www.wxwidgets.org/
Link to all mouse events:
https://docs.wxwidgets.org/3.0/classw...
Chapters:
0:00 - Plan
0:20 - Project Setup
0:33 - A Mouse Event Handler
1:51 - Detecting a Click (Left Mouse Button)
2:37 - Mouse Position
3:47 - Other clicks (Right & Middle + Double Click)
4:27 - Mouse Movement
4:57 - Bonus Tip! Fix Flickering
5:42 - Interaction With Child Controls
6:39 - Child Event Handling
7:04 - Client Position vs Screen Position
8:27 - Converting Positions
9:12 - Thanks!