4,253 questions
-3
votes
0
answers
56
views
Windev application window getting distorted during "minimising" and "maximising" [closed]
Windev application's window components getting distorted while minimising and maximising. Anchoring was used for these actions, hence the components are getting distorted. Gets corrected at the end of ...
2
votes
0
answers
48
views
How to change hover color of a wxButton
I’d like to know whether it’s possible to change the background color of a wxButton when the mouse is hovering over it. On Windows, I tried handling the enter/leave window events, but it seems the ...
0
votes
2
answers
80
views
How to fire wxWidgets custom event outside of wxFrame
I would like to fire a wxWidgets custom event from outside of wxFrame or wxApp.
How do I do this?
Background
I have a wxGauge (progress bar) that I want to update from my Model (which is not part of ...
0
votes
1
answer
261
views
How can I install Wxpython on Fedora?
Please, how can I install wxpython on Fedora os?
I have tried installing it but I got the following error. Thank you in advance for your answer.
I have the C++ compiler installed on my computer but I ...
0
votes
0
answers
71
views
wxWindow can't have transparent background and replacement for it
I created this C++ class for my wxWidgets app. The bitmap and image are both transparent.
#include <wx/wx.h>
#include <wx/image.h>
class PouCharacter : public wxWindow
{
public:
...
0
votes
0
answers
70
views
wxWidgets on Linux and its Release to vcpkg
I have two related questions:
I am on a Linux Mint OS and trying to install wxWidgets from vcpkg and having problems. Has anyone achieved to install wxWidgets from vcpkg on Linux? Are there ...
1
vote
1
answer
69
views
modal wxDialog issue in wxWidgets [closed]
I created a dialog (on the stack) inside a panel when a user clicks a button.
auto* btn_search_patient = new wxButton(panel, wxID_ANY, "Search");
btn_search_patient->Bind(wxEVT_BUTTON, [&...
0
votes
0
answers
79
views
Using WXUSINGDLL has no effect on the linkage
my wxWidgets application has multiple C++ projects (one executable and all the other static libraries). I am using Visual Studio 2022 with a solution having Debug and Release configurations only for ...
-1
votes
1
answer
141
views
Can anyone help getting wxPython to build?
I am trying to build wxPython (version 4.2. 4a1) from source for python 3.12.3 using wxWidgets (version 3.2. 7. 1) and SIP (version 6.11. 0) in a Docker container based on Ubuntu 24.04. The build ...
1
vote
2
answers
87
views
How can I use a wx.FileDialog to select a file which is locked by another process
I'm trying to use the wx.FileDialog class to select the name of a file. I don't want to open it. This is a minimal example of what I'm trying to do:
import wx
if __name__ == '__main__':
app = wx....
1
vote
2
answers
81
views
Event publishing from wxThread to wxWidgets Application
In my wxWidgets application, I do:
Disable all "User" widgets.
Create a thread to read, parse and store data from a file.
I want to send a message (event?) to the main application from the ...
0
votes
2
answers
85
views
How to run wxWidgets official samples?
I built wxWidgets in Windows with cmake
cmake -G "MinGW Makefiles" /path/to/wxWidgets/ -DwxBUILD_SAMPLES=ALL
cmake --build .
Now I got a lot of output files in folders build\samples\...
-1
votes
2
answers
182
views
How to handle Chinese characters in a OpenCV-WxWidgets based software
I implemented a C++ rendering software. Users are allowed to import image files inside it.
I want my software to support any possible language in the world. Right now importing for example a Chinese ...
1
vote
0
answers
100
views
Issues with wxGLCanvas rendering and resize events under wxWidgets-3.2
I am encountering issues with the rendering of wxWidgets examples that make use of wxGLCanvas, code that had worked correctly under possibly previous version of wxWidgets and associated libraries, but ...
4
votes
1
answer
201
views
How to identify a DLL with incorrect build version, and build it with the right build version
I am working on a C++ application that uses many DLLs. I am migrating the application to build with the Windows 10 SDK.
After I thought I had successfully rebuilt all DLLs and the EXE to use the ...
-1
votes
1
answer
70
views
wxButtons Not Loading Correctly [closed]
I am creating a GUI using wxWidgets in C++, however one issue I am having is the buttons won't load properly when I use a wxStaticBitmap background.
I have moved the code everywhere in different ...
0
votes
0
answers
85
views
pybind11 module unable to import Python File in C++
This piece of code is part of one of my wxFrames for a sign up page. I am trying to run some Python code from C++ in order to switch frames, depending on the output of the Python file.
(I use this: ...
-1
votes
2
answers
136
views
C++ build errors with wxWidgets 3.1.2 and Connect method
I'm using Visual studio 2017 on a x86 machine, app is for 32bit.
wxWidgets version 3.1.2;
I have duplicated a project under another folder to serve as base of a new one, and, once removed all that is ...
0
votes
0
answers
124
views
Compiling wxWidgets applications in VS Code using Mingw64
I'm trying to compile the wxWidgets grid sample application in Visual Studio Code using Mingw64.
So far I haven't been successful despite intensive search for potential root causes and solutions. The ...
0
votes
1
answer
131
views
How to detect double click on wxAuiNotebook tab at wxWidgets?
I am trying to detect a double-click on a tab in wxAuiNotebook in wxWidgets (C++). However, I can't find any event in the wxAuiNotebook event system that corresponds to this action.
In wxPython, there ...
1
vote
1
answer
96
views
Is there any way to add checkbox inside of wxPropertyGrid
I'm working on a wxWidgets application and trying to add a checkbox to a wxPropertyGrid. I attempted to use wxBoolProperty, but this property appears as a dropdown (combo box) instead of a checkbox.
...
1
vote
1
answer
161
views
How to create a virtual file in clipboard for pasting into Explorer?
I'm currently developing a wxWidgets application for Windows 10/11 that is supposed to generate a file. This file is security sensitive so minimizing the copies on disk is ideal. As a result, I want ...
0
votes
0
answers
131
views
Cant build project with wxWidgets and cmake
I'm on windows trying to build a project from github with cmake that requires wxwidgets.
I followed the directions located here https://docs.wxwidgets.org/3.2.5/overview_cmake.html for building with ...
0
votes
1
answer
300
views
wxGraphicsContext and wxDC
I have written a chart application all using wxDC and its subclasses. However, I realized wxGraphicsContext offers truly superior advantages to wxDC but has its own ecosystem and this is very much ...
0
votes
1
answer
90
views
transferring information between panels using custom events
In modern wxwidgets using c++, I am trying to transfer information between two wxPanels using a custom event - but it seems I just can't get it right. I get various compiler errors, that I don't ...
0
votes
0
answers
92
views
How to explicitelly set the wxFrame position?
Having such a simple wxFrame:
...
wxFrame* mainFrame = new wxFrame(NULL, wxID_ANY, "main frame", wxPoint(10, 20), wxSize(150, 100), wxICONIZE);
mainFrame->SetBackgroundColour(wxColor(80, ...
2
votes
0
answers
79
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
80
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 ...
0
votes
1
answer
708
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 ...
0
votes
2
answers
127
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
95
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
180
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
87
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 ...
0
votes
1
answer
124
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
179
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
398
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
123
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
348
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
115
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
84
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
53
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
71
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
35
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 &...
-1
votes
1
answer
213
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
59
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
60
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
72
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
201
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
93
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
264
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:\...