Below you will find pages that utilize the taxonomy term “wxWidgets”
Simplifying CMake Projects with FetchContent for Cross-Platform UI Development
FetchContent, introduced in CMake 3.11, simplifies the process of downloading and building dependencies. It is particularly useful for integrating libraries like wxWidgets into your project.
Navigating Grid Sizers in wxWidgets: From Basics to Flexibility
Welcome to our practical exploration of wxWidgets’ Grid Sizers. Building on our previous tutorial on layout basics, today we’re venturing into the more advanced realms of the simple Grid Sizer and the Flex Grid Sizer. Through concrete examples – a checkerboard pattern and a functional signup form – we’ll demonstrate the power and nuances of these layout tools.
How to use Built-in Dialogs in wxWidgets
Where wxWidgets shines as a multi-platform UI library is its consistent native look and feel across different operating systems.
Dialogs are no exception. The library offers methods and classes to display system-specific dialogs for everyday tasks, like opening a file, choosing a font, etc.
GDK Pixbuf error when running a wxWidgets app on Linux
If you encounter an error message saying “Could not load a pixbuf from icon theme” on Linux, note that it might be just a VSCode error.
As explained in my Menus video (the “Problems with Icons on Linux” chapter), this error may occur when using the default system icons, for example when using submenus and option items in the main menu.
Handling Clipboard Operations in wxWidgets Text Controls
Handling common clipboard tasks for your text fields is a must-have for any serious application that needs to accept keyboard input from the users. Surprisingly, it’s not that easy in wxWidgets, especially considering the differences between platforms (Linux, Mac, and Windows).
I explain the problem in detail in my Text Fields video (the “Clipboard Operations” chapter). In the Menus tutorial, I talk about menus in general and constructing the Edit menu with the clipboard commands in particular.
Basic Layout in wxWidgets: the Flexibility of Simple Box Sizers
Let’s talk about layout. It is a fundamental concept in any kind of UI programming, and designing desktop applications with wxWidgets is no different.
This is a companion post to the video tutorial I created some time ago. Check it out for a more detailed explanation and live demo of various sizers configurations:
wxWidgets + CMake: Multiplatform Superbuild
In this article I’ll show you how to create a native-looking UI application in C++ and build it on each of the major platforms (Windows, Linux, Mac OS) using a single build script code.
You can download the full source code of the sample program from github: https://github.com/lszl84/wx_cmake_template . Also, check the YouTube video below, which describes the process in detail, showing how this works on each of the aforementioned platforms: