C++ GUI Programming For Beginners | Episode 12 - wxBoxSizer

Опубликовано: 21 Март 2026
на канале: OttoBotCode
9,770
220

Learn how to program cross platform graphical user interfaces in C++ using wxWidgets.

In this introduction to Sizers video, you will learn what Sizers are and how to use them.Specifically, we cover the BoxSizer, which is the simplest and most commonly used Sizer. A wxBoxSizer, lays out its children either horizontally or vertically depending on it's orientation.

wxWidgets website:
https://www.wxwidgets.org/

Support me on Patreon:
  / ottobotcode  

Chapters:
0:00 - Plan
0:14 - What is a Sizer?
0:28 - Create Controls
1:01 - Create a BoxSizer
1:36 - Add Children to Sizer
1:51 - SetSizerAndFit
2:49 - Set Initial Window Size
3:21 - Specific Control Size
4:10 - Sizer Parameters
4:34 - Proportion Parameter
6:03 - Alignment Flags
7:16 - wxEXPAND Flag
7:37 - wxSHAPED Flag
8:05 - Borders
9:16 - Combining Flags
9:38 - Using wxSizerFlags
10:58 - Spacers
11:39 - StretchSpacers
12:11 - Align With Sizer Orientation
12:44 - Vertical BoxSizer Example
13:44 - Sizers + Panels
15:38 - Thanks!