---
title: "#wxwidgets articles | Hashnode"
description: "Explore 8 articles tagged #wxwidgets on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/wxwidgets"
---

Tag

# #wxwidgets

8 posts · 0 followers

[兄友弟恭源赖朝](https://hashnode.com/@leyley) · [Dec 3, 2024](https://hashnode.com/posts/wxdialogwxwindow/674f0d9337123344616ebf9a)

### [wxDialog/wxWindow根据控件自适应大小](https://www.leiex.com/wxdialogwxwindow?utm_source=hashnode&utm_medium=feed)

在使用wxSizer时，用Add (wxWindow window, int proportion=0, int flag=0, int border=0, wxObject userData=NULL)方法，将flag设置为wxALL，如果使用wxEXPAND，则会出现额外的空间，导致控件之间的间隔变的很大，效果很难看 在Add完所有控件后，调用wxSizer的SetSizeHints (wxWindow \*window)方法，window参数传入窗口指针

1 min read · [leiex.com](https://www.leiex.com/wxdialogwxwindow?utm_source=hashnode&utm_medium=feed)

[兄友弟恭源赖朝](https://hashnode.com/@leyley) · [Nov 6, 2024](https://hashnode.com/posts/wxwidgets-wxtaskbaricon-contextmenu/672b8fe6c070c367b85c3553)

### [wxWidgets实现托盘图标动态右键菜单](https://www.leiex.com/wxwidgets-wxtaskbaricon-contextmenu?utm_source=hashnode&utm_medium=feed)

首先，按标准流程，基于wxTaskbarIcon实现一个类 namespace TrayThem { class TrayIcon : public wxTaskBarIcon { protected: virtual wxMenu \*CreatePopupMenu(); public: explicit TrayIcon(wxTaskBarIconType iconType = wxTBI\_DEFAULT\_TYPE); ~TrayIcon(); }; }; 然后，重载它的Cre...

1 min read · [leiex.com](https://www.leiex.com/wxwidgets-wxtaskbaricon-contextmenu?utm_source=hashnode&utm_medium=feed)

[兄友弟恭源赖朝](https://hashnode.com/@leyley) · [Oct 23, 2024](https://hashnode.com/posts/wxlistctrl-usage/67191ca79a65a732562fce16)

### [多列wxListCtrl使用技巧](https://www.leiex.com/wxlistctrl-usage?utm_source=hashnode&utm_medium=feed)

以官方Wiki的minimal example为例： // Example uses fictive class "Item" and fictive getters to access them. Adapt for your needs class MyFrame : public wxFrame { wxListCtrl\* m\_item\_list; public: MyFrame() : wxFrame(NULL, wxID\_ANY, wxT("Hello wxWid...

2 min read · [leiex.com](https://www.leiex.com/wxlistctrl-usage?utm_source=hashnode&utm_medium=feed)

[Arun Udayakumar](https://hashnode.com/@arunudayakumar) · [Sep 20, 2024](https://hashnode.com/posts/handling-some-ldlibraryerrors/66eddefd5055763f04ff6c4c)

### [Handling Some LD\_LIBRARY\_ERRORS](https://arunudayakumar.hashnode.dev/handling-some-ldlibraryerrors?utm_source=hashnode&utm_medium=feed)

Question: error while loading shared libraries: libwx\_gtk3u\_core-3.3.so.0: cannot open shared object file: No such file or directory \\=> Working Answer The error you're encountering indicates that the dynamic linker is unable to locate the wxWidgets ...

2 min read · [arunudayakumar.hashnode.dev](https://arunudayakumar.hashnode.dev/handling-some-ldlibraryerrors?utm_source=hashnode&utm_medium=feed)

[兄友弟恭源赖朝](https://hashnode.com/@leyley) · [Aug 16, 2024](https://hashnode.com/posts/wxwidgetscmake/66bf5e9c3028107be31e1f9c)

### [wxWidgets项目的CMake写法示例](https://www.leiex.com/wxwidgetscmake?utm_source=hashnode&utm_medium=feed)

cmake\_minimum\_required(VERSION 3.10) set(proj TrayThem) set(CMAKE\_CXX\_STANDARD 11) project(${proj} CXX) set(APP\_NAME "Tray Them!") set(APP\_VERSION\_MAJOR 0) set(APP\_VERSION\_MINOR 0) set(APP\_VERSION\_FIX 1) configure\_file(${CMAKE\_SOURCE\_DIR}/src/inc...

1 min read · [leiex.com](https://www.leiex.com/wxwidgetscmake?utm_source=hashnode&utm_medium=feed)

[Chris Douris](https://hashnode.com/@TheRunner01) · [Feb 16, 2024](https://hashnode.com/posts/day-12100-100-days-of-code/65cfc52372755845d27fa910)

### [Day 12/100 100 Days of Code](https://digitalcreations.hashnode.dev/day-12100-100-days-of-code?utm_source=hashnode&utm_medium=feed)

Info Hunter

2 min read · [digitalcreations.hashnode.dev](https://digitalcreations.hashnode.dev/day-12100-100-days-of-code?utm_source=hashnode&utm_medium=feed)

[Arun Udayakumar](https://hashnode.com/@arunudayakumar) · [May 6, 2023](https://hashnode.com/posts/fromdip-in-wxwidgets/64564c90eff7a4608aabd3ca)

### [FromDIP in wxWidgets](https://arunudayakumar.hashnode.dev/fromdip-in-wxwidgets?utm_source=hashnode&utm_medium=feed)

In wxWidgets, the FromDIP() function is used to convert device-independent pixels (DIPs) to device pixels. Device-independent pixels are a unit of measurement used in modern UI design to ensure that user interfaces look consistent across different di...

2 min read · [arunudayakumar.hashnode.dev](https://arunudayakumar.hashnode.dev/fromdip-in-wxwidgets?utm_source=hashnode&utm_medium=feed)

[Arun Udayakumar](https://hashnode.com/@arunudayakumar) · [May 6, 2023](https://hashnode.com/posts/explaining-wxinitallimagehandlers/645649a0df24c2907867f9c5)

### [Explaining wxInitAllImageHandlers](https://arunudayakumar.hashnode.dev/explaining-wxinitallimagehandlers?utm_source=hashnode&utm_medium=feed)

In wxWidgets, the function wxInitAllImageHandlers() initializes all the image handlers that are available in the library. Image handlers are responsible for loading and saving images in various formats, such as JPEG, PNG, BMP, and GIF. When you want ...

2 min read · [arunudayakumar.hashnode.dev](https://arunudayakumar.hashnode.dev/explaining-wxinitallimagehandlers?utm_source=hashnode&utm_medium=feed)
