4,241
questions
-11
votes
0
answers
127
views
How to support several languages in a wxWidgets based application [closed]
I want to support several languages in my C++ WxWidgets based application. Right now when application launches we load XRC files generated by wxFormBuilder. The labels and tooltips are all written in ...
2
votes
0
answers
51
views
Creating a button with semi-transparent background
I'm trying to create a simple wxButton button which do have semi-transparent background. There is thy code I'm using:
...
m_sizer = new wxBoxSizer(wxVERTICAL);
m_pngLoader = new wxPNGHandler();
...
0
votes
1
answer
45
views
How to disable wxGrid cell highlighting?
As the title says - how to disable wxGrid selected (by mouse) cell highlighting like on the attached image.
I've tried using the SetCellHighlightColour method but it does NOTHING! There is still this ...
-1
votes
0
answers
84
views
Unwanted border around the window
I have a very simple wxFrame with wxButton inside it:
the full code of the app:
#include <wx/wx.h>
#include <wx/grid.h>
class MyFrame;
MyFrame* g_frame;
class MyFrame : public wxFrame
{
...
0
votes
1
answer
50
views
UCRT vs. MSVCRT for GCC 14.x
I am using MinGW64 together with Codelite and have just downloaded the latest GNU GCC version packages 14.1 and 14.2. For 14.1 I found 2 packages (UCRT and MSVCRT), for 14.2 I got only the UCRT ...
-1
votes
2
answers
62
views
Positioning the wxFrame object
Using the very simple wxFrame example form the official wxWidgets site I'd like to set the created window position jut to the very upper left screen corner
so I've added the simple frame->...
0
votes
1
answer
64
views
How to make a window/frame/control draggable?
How can I make the wxGrid instance draggable? That is the wxGrid is embedded on the main wxFrame. By default one can move the whole app window by clicking on the title bar and just dragg. How to make ...
0
votes
1
answer
66
views
In WXwidgets, how can I bind an event in one class to a function from a different class
Using wxwidgets in C++, I am trying to bind an event in one class to functions in different classes. Here is a minimal reproducable example:
#include <wx/wx.h>
#include <wx/notebook.h>
#...
0
votes
1
answer
54
views
C++ Macro to add `__PRETTY_FUNCTION__` to formatted wxLog function calls
I have an application using wxWidgets, and I'm using the built-in wxLogging to print messages with wxLogError(msg).
Essentially, I want to have a macro that takes all my wxLogError calls and adds the ...
-1
votes
0
answers
51
views
MacOS App file is damaged and can't be opened [duplicate]
I have developed a MacOS app with wxwidgets 3.2.5 and made a release .dmg file. When I open the generated file, app is working fine. But when I upload this .dmg file to my web server and download it ...
0
votes
1
answer
66
views
I cannot get drawing to work with wxWidgets
I am trying to make a Snake game. I am able to get the window opened but have had no luck in drawing the grid on to the window.
// Snake.h
#pragma once
#include <wx/wx.h>
#include <stdio.h>...
-1
votes
1
answer
43
views
wxWebRequest crashes at Release but works in Debug
I am using wxWebRequest to download a very small (1 KB) text file from the server with the following code:
auto WebRequest = wxWebSession::GetDefault().CreateRequest(this,
"https://www.pebytes....
0
votes
2
answers
66
views
wxWidgets setup with mingw64 and vscode
I have tried everything from wxWiki to chatGPT and nothing solves my issue, please note that I do not need an alternative solution, and want to understand what I am missing in this implementation.
...
0
votes
1
answer
67
views
how to transfer data between different panels or tabs in wxwidgets c++?
I am writing a code for a GUI in c++ using wxwidgets. In the GUI I have an input panel that recieves information from the user, and an output panel that displays the results of a numeric simulation ...
0
votes
1
answer
52
views
How to add a wxPanel to a Frame in wxFormBuilder without AUI manager
I'm currently learning wxWidgets that I'm finding quite flexible so far. However, when I move to wxFormBuilder in order to create more complex UI, it becomes painful. Let me give you a quick example ...
-1
votes
1
answer
65
views
C++ wxWidgets: How do I refer to an element of my frame?
Let's say I have a button on my Frame inside a panel, and I have a static text inside a panel on the same level of the panel where the button is. How can I modify let's say the background colour or ...
0
votes
2
answers
64
views
GUI Not Displaying All Components (C++)
I am using Visual Studio 2022
Here is the code for the mainframe.
#include "MainFrame.h"
#include <wx/wx.h>
MainFrame::MainFrame(const wxString& title) : wxFrame(nullptr, wxID_ANY,...
0
votes
1
answer
34
views
How to suppress heavy outline of selected cell in WxGrid? [closed]
My program has a wx.grid.Grid that has a selection mode of GridSelectRows. When the user clicks on it, the entire row is selected, which is what I want. However, the cell on which the user has ...
1
vote
0
answers
44
views
wxWidgets vcpkg link errors
I installed vcpkg and then ran the command vcpkg install wxwidgets. This has successfully installed wxwidgets. To test it, I have the following files:
wxsample.cpp
class MyApp : public wxApp
{
public:
...
0
votes
1
answer
28
views
Custom Event does not propagate wxWidgets C++
I created a custom event to pass Card class in the event :
#include "card.hpp"
class CardEvent: public wxEvent
{
public:
CardEvent(wxEventType eventType, int winid, const Card &...
0
votes
1
answer
62
views
How to setup WxWidgets IntelliSense on linux VS code
how to get WxWidgets IntelliSense for Linux VScode. i was able successfully compile WxWidgets.
i added '/home/udan/Documents/Libraries/wxWidgets/include' to include path, but that doesn't seems to ...
-1
votes
1
answer
44
views
wxMathPlot plot freezes the system on resize
I have a plot created using wxMathplot library, at initial lunch the plot works perfect, but when I resize the window it stucks and the laptop freezes until I restart it, before the freeze, I noticed ...
0
votes
0
answers
49
views
wxWidgets: wxFrame() creation diverges by a few pixel, what am I doing wrong?
I am coming from MFC and are currently about to verify wxWidgets.
The following code compiles under ucrt64 and runs on a Windows 10 system.
My expectation is that the main windows has a size of ...
0
votes
1
answer
30
views
How to embed a Window from HDevEngine in my wxWidgets panel?
HDevEngine (Propietary software) is an interpreter for running Programs from a Skripting language in C++. This engine can also Run Pop-Up windows to show the results.
I want to avoid the HDevEngine to ...
0
votes
0
answers
38
views
wxWidget frame / window not closing
I have been developing a custom UI for Autodesk Alias. I use wxwidget for this.
i follow youtube tutorials and made a window / frame.
i have problem now. when i click the close button in menubar ,the ...
0
votes
0
answers
78
views
Issue with wxWidgets, CMake, and MSYS2: "libwx_mswu-3.2.a" not found during build with Ninja
I am facing a frustrating issue when trying to compile a C++ project using wxWidgets, CMake, and MSYS2 on Windows. Although CMake configures the project correctly and finds all the necessary libraries,...
0
votes
1
answer
50
views
Error in including wxAutoExcel in wxWidgets project
I tried to use wxAutoExcel library to read/write excel files in my wxWidgets app, I built the library from source in the link https://github.com/PBfordev/wxAutoExcel, when including the header in my ...
-1
votes
2
answers
81
views
how to compile a c++ file that uses wxWidgets using Mingw(gcc/g++) or using a makefile
i can compile c++ file using visual studio, but i wanna compile it using Mingw(gcc / g++).
Note: i don't know much about wxWidgets
when i run gcc main.cpp -I C:\wxWidgets-3.2.5\include\msvc -I C:\...
0
votes
1
answer
57
views
How to get other widgets to respond to action on sibling in wxWidgets (C++)?
I'm trying to create a GUI with wxWidgets in C++, where the user can double click on the main panel to add and remove circles. When a user single clicks on one of these circles, I want it to toggle ...
0
votes
0
answers
39
views
Vscodium not recognizing wx/wx.h file [duplicate]
I installed vscodium and wx/wx.h in my macbook pro using homebrew to install both.
I'm trying to start a gui project using wx/wx.h, but every time I try to include the header file, I get an error ...
0
votes
1
answer
39
views
wxPanel inside wxNotebookPage not displaying correctly
I'm somewhat new to wxWidgets and have been trying to create a notebook. The problem is that the wxPanel does not stretch to fill its parent which is the wxNotebookPage. How do I properly use panels ...
0
votes
0
answers
59
views
WxPython Align text in TextCtrl Center Vertical
I am trying to center the text inside a TextCtrl. Many solutions to other similar questions rely on using ALIGN_CENTER_VERTICAL however I cannot do this as I want my text box to be larger than the ...
0
votes
1
answer
36
views
Background colour of a wxControl-based custom control
I have a simple custom control consisting of wxStaticText and wxTextCtrl in one sizer.
#include "wx/control.h"
class CParamCtrlEx : public wxControl
{
public:
CParamCtrlEx(void);
...
0
votes
1
answer
73
views
wxwidgets minimal works on local display but not on x terminal
I have two wxwidgets hosts:
Windows 11 VirtualBox 7.0.14 161095 Fedora 39 (guest) wxWidgets 3.2.4
Fedora 39 (native) wxWidgets 3.2.4
The vbox host will play to an MobaXterm Personal Edition v24.0 ...
0
votes
0
answers
56
views
Wxwidgets C++ - Multiple sizers, multiple panels
Trying to implement a game menu with buttons. When button clicked it enters a submenu which is a new panel. It all works but the problems come with sizers. I have also sizers for every panel and at ...
0
votes
1
answer
51
views
max size for wxSplitterWindow
Is it possible to set max size for panel inside a wxSplitterWindow? I need to split window verticaly in two sides: the left side has to have min(it is possible with SetMinimumPaneSize) and max size, ...
0
votes
1
answer
64
views
How to create a shadow for a popup window in wxPython?
For example, like google drive. Google drive is developed using wxPython, which means there is such a possibility
Screenshot from Google Drive
Ideas using Bitmap and DC come to mind, but I would like ...
0
votes
0
answers
29
views
wxWidgets wxFlexGridSizer not "sizing" with the others
I'm not sure if this is a wxWidgets issue or a Code::Block issue, both or just me... but I have this screen that I rearranged because the buttons in the middle would get hidden by a panel that's ...
0
votes
0
answers
44
views
Is there a way to use fuzzy selection to narrow the choices in a wx.ComboBox (wxWidgets)
I want to populate a wx.ComboBox with a large number of items but rather than having to scroll through them all, I'd like to type a string into the ComboBox and narrow the items in the ComboBox using ...
0
votes
1
answer
75
views
WxWidgets - Error in build with mingw32-exe dll, mingw64
I am trying to build WxWidgets 3.2.4 with MinGW64 g++ from the cmd line.
After downloading the source, I followed the build instructions ("...\docs\mswinstall.md"), which state:
### Using ...
0
votes
0
answers
63
views
Issues with wxWidgets and Binding on Mac M1
This is my first question so I hope I follow the corrrect steps.
Summary:
Installed wxWidgets on an M1 Macbook Pro running macOS Sonoma 14.4.1.
Successfully compiled and ran several demos/samples. (...
1
vote
3
answers
183
views
wxWidgets application crashes on arch linux, but not on windows
I've been trying to create a wxWidgets C++ application under my EndeavourOS (should be arch linux at it's core).
My Desktop Environment is KDE Plasma (Wayland). But I the same problems occur on GNOME, ...
0
votes
1
answer
57
views
Button in a PropertyGrid missbehaviour
Hello referring to the "Button in a PropertyGrid" post which proposes a solution to add a button to a wxPropertyGrid, I implemented the above code (both under Linux and Windows) and the &...
0
votes
1
answer
63
views
wxWidgets: Implementing selection of objects on the panel
I want to implement object selection by allowing users to create a rectangular area using the mouse.
I'm creating a panel TPanel that inherits from wxWindow to handle certain events and perform ...
0
votes
1
answer
48
views
wxWidgets internal image function can't load large PNGs?
I have a (unusual big) PNG with an image size of 29000x29000 pixels where the wxWidgets-internal image handlers fail to load it.
What I can see:
In file src\png\png.c function png_check_IHDR() there ...
0
votes
0
answers
78
views
How to use "wx_dpi_aware.manifest" of wxWidgets wxMSW with MinGW and CMake?
I'm using wxWidgets on Windows with MinGW64 toolchain and CMake. I am confused about how to make my program DPI-awared. When using Visual Studio, "wx_dpi_aware.manifest" can simply solve the ...
0
votes
1
answer
59
views
wx only execute on mouseover, not during GUI initialization
Basic outline of situation
In wxPython, I have a wx.lib.sized_controls.SizedFrame() as a class object which holds a wx.lib.sized_controls.SizedScrolledPanel() with SetSizerProps(expand=True, ...
-1
votes
1
answer
85
views
WxWidgets configure: error: C compiler cannot create executables
I'm triying to build WxWidgets for using it in C++ using the configure file in Msys2 and I'm getting this problem. I am in Windows 10 and I have gcc and g++ both version 13.2. I have already set the ...
0
votes
1
answer
52
views
How do I link files in an Xcode Build for C++
I'm pretty new to c++ and programming with Xcode and I am trying to run a program with multiple linked files and the wxWidgets GUI builder by pressing the run button in Xcode without having to switch ...
0
votes
0
answers
35
views
wxAutomationObject for Excel File Manipulation in C++
I'm relatively new to wxWidget and am currently working on a C++ program that requires the use of wxAutomationObject. Specifically, I need to open an Excel file and write string into multiple cell. ...