Questions tagged [wxwidgets]

wxWidgets is a cross-platform GUI framework. It is written in C++ and has bindings for Python, Perl, Ruby, PHP, Erlang and even .Net. It also supports several mobile platforms including Windows Mobile, iPhone SDK and embedded GTK+.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
17 views

Installing wxWidgets and linking it to Cmake in Clion (Windows 10)

I cant figure out how I should install wxWidgets to link it properly to my IDE, which is Clion. I tried downloading wxWidgets from here: https://www.wxwidgets.org/downloads/ , both the executable ...
Babboboncia's user avatar
1 vote
0 answers
32 views

Detecting key presses in wxStyledTextCtrl and setting style for selected text

I'm using wxWidgets to create a simple notepad style application. I've created a wxStyledTextCtrl box using: class MyRichText : public wxStyledTextCtrl { public: MyRichText(wxWindow* parent, ...
Tony Hills's user avatar
0 votes
1 answer
43 views

How do I correctly compile wxWidgets with VS Code and MSVC?

I am currently working on developing a GUI front-end for a console-based C++ application using wxWidgets (I decided against dancing with Qt's licensing conditions). I've been doing all the work for ...
Taylor Grossenbacher's user avatar
-2 votes
1 answer
54 views

Two Errors in WxWidgets application

I am trying to create a VNC client. Right now, I am creating the GUI that will be viewing the remote user's screen. Here is my code so far, I am using wxWidgets 3.2.2: #include <wx/wx.h> #...
Marianne Sanders's user avatar
1 vote
2 answers
54 views

GUI updates from another thread using CallAfter in wxWidgets

I am working on a small Desktop Application in C++ using wxWidgets, it is about visualizing different types of sorting. In order to keep GUI responsive while the sorting is taking place and being ...
witkowski's user avatar
0 votes
0 answers
33 views

How to change wxNotebook page label color?

I am using WxWidgets as UI framework in my software. I added a wxNotebook to my main frame. I would like the notebook labels to be highlighted when selected. For example under Visual Studio: In my ...
StudenteChamp's user avatar
0 votes
0 answers
37 views

cannot open file 'wxbase32u.lib' in CMake project with wxWidgets in Visual Studio?

Ok that title might sound confusing. Basically, I want to build my wxWidgets app with CMake instructions and not a .sln solution. So I created a visual studio CMake Project. I have the following .h ...
zoinkers's user avatar
0 votes
2 answers
69 views

Changing Application Icon in Visual Studio 2022

I have a Application project in VS 2022 and I added the appropriate .ico file to the icon resources, it is listed as IDI_ICON1. In all the research I have done, it indicates to open the Project ...
Rick's user avatar
  • 17
0 votes
0 answers
54 views

Call/link a C++ source in wxWidgets?

I don't know if it is possible to make my UI display results of calculations made with cpp code in ListBox or wxPanel. Can someone assist me on this confusion? Do I have to: write the formulas in ...
Man Ced 's user avatar
1 vote
1 answer
69 views

Why does visual studio not open my wxWidgets gui's window(frame)?

I start a project where I use wxWidgets. There are 2 classes and 2 cpp files. 1st class: #pragma once #include <wx/wx.h> class MainFrame:public wxFrame { public: MainFrame(const wxString&...
Богдан Иванилов's user avatar
0 votes
1 answer
35 views

wxLaunchDefaultApplication vs wxLaunchDefaultBrowser for opening a local directory in the default file manager

I'm writing a wxWidgets program wherein I need to open a local directory in the default file manager. This program should be cross-platform and work well on at least Windows and Linux, but preferably ...
Newbyte's user avatar
  • 2,441
0 votes
1 answer
38 views

wxWidgets add widgets (in a sizer) from bottom left instead of top left?

I want to add a varying amount of 2d squares on the bottom of a panel, whose widgets are inside a box sizer. I made a Square class widget, that takes in a position, size, and color, and made 3 ...
zoinkers's user avatar
0 votes
0 answers
46 views

Remotely Debug WxWidget "Hello World" from Raspberry PI in Visual Studio 2019

My goal is to remotely debug a C++ wxWidget "Hello World" program that was built from source on a Raspberry PI 4 using Visual Studio's debugger that's installed on my laptop. Things that I'...
Digital101's user avatar
0 votes
1 answer
151 views

Compile wxWidgets applications in Visual Studio 2022?

I'm using Windows 11 OS, wx widgets 3.2.2.1 and Microsoft Visual Studio 2022. I installed wxWidgets. I then created a C++ empty project and properly configured it for wxWidgets. I created a source ...
bozorgmehr's user avatar
0 votes
1 answer
37 views

Unable to create read-only wxComboBox in wxWidgets

I'm trying to create a program and as one of the requirements, I need to get a ComboBox to be read-only. I tried using wxCB_READONLY and also wxTE_READONLY. In both cases, my debugger threw the ...
teunhee's user avatar
1 vote
0 answers
46 views

Can I use a wxPaintDC instance as a class member?

I have made a class wxRectangleDrawing, which has 3 methods, 1 for catching the paint event and creating the dc object, one for drawing my desired rectangle with that dc object, and one for clearing ...
zoinkers's user avatar
0 votes
2 answers
43 views

elements on the panel are displayed incorrectly When changing panels

I am using WxWidgets 3.2 for my C++ Windows application. In my application I need to change the interface for the user when he clicks the buttons. To change the interface, I use this idea: I show the ...
joe_dowson's user avatar
0 votes
1 answer
38 views

Custom page image from an image file

I am learning about treebook in wxwidgets and I want to customize the icon that will appear in my page control. I look at the sample and they use images from the wxArtProvider, which seemingly only ...
G Nguyễn's user avatar
0 votes
1 answer
30 views

How should I change my code so that I can call the Bind() function instead of using the event table?

I am using WxWidgets 3.2 for my C++ Windows application. I need to pass data (eg login) from one class to another. To do this, I create a custom event and use the event table to bind the event to the ...
joe_dowson's user avatar
0 votes
0 answers
35 views

How to pass objects between custom WxListView and main program context?

I have an wxWidgets application that parses data from a file and stores it into an object. The data stored within the object is mixed types, float, string etc. class data { float mData1, mData2; ...
hdcdigi's user avatar
  • 75
0 votes
0 answers
43 views

Enable transparent panel with wxWidgets?

What i want to create is: having a background image in a panel having a second panel in the foreground with an splitter on the left side -->the splitter should not affect the size of the ...
Studying's user avatar
0 votes
1 answer
45 views

How to resize text dynamically along with window resizing in wxWidgets?

I want to make something simple, inside a panel, have a text that resizes when you resize the window. I tried with a wxBoxSizer, doesn't work the way I naively hoped. wxBoxSizer* sizer = new ...
BigVotka2in1's user avatar
0 votes
1 answer
31 views

DataView containers can’t have more than one column

I created a Dataview in wxWidgets but it seems that if I add children to an item then only one column shows on the item I created a Dataview and added an item to it and another item The Dataview has ...
oqamm's user avatar
  • 11
0 votes
0 answers
41 views

Problem integrating wxWidgets to Xcode project

Have a nice day everyone. I'm a newbie to wxWidgets and i'm trying to build my very first app on XCode with it. However, I have encountered some errors that despite trying different methods, I still ...
G Nguyễn's user avatar
0 votes
1 answer
68 views

wxControl or wxWindow when making custom widgets using wxWidgets

I would like to ask between these two classes which would be appropriate to use when making custom widgets eg. custom buttons. I am still new to wxWidgets but i can not seem to find proper resources ...
Kingdawnage's user avatar
1 vote
0 answers
45 views

Making custom button background transparent in wxWidgets

I am making a custom button in wxWidgets and i would like it to be a rounded rectangle shape. The problem i am facing is that the edges of the button still show the background colour . The code for ...
Kingdawnage's user avatar
0 votes
0 answers
42 views

How to Place/Draw a rectangle in a panel in wxWidgets?

I want to place a rectangle of a specified color at a certain location, as well as have said rectangle scale dynamically along with the panel Right here I have a "view panel" inside my ...
BigVotka2in1's user avatar
0 votes
0 answers
33 views

Starting wxFrame using ctypes in Python

I have a DLL file (scisuit_plot_d.dll) and there is a plot function namely c_plot. The DLL has dependencies on a few other DLLs. The signature of c_plot: extern "C" DLLPLOT PyObject * c_plot(...
macroland's user avatar
  • 973
1 vote
1 answer
128 views

How do I make a C++ 3rd party library feched with CMake's FetchContent not show any warnings?

I'm working on a C++ project that uses wxWidgets with a CMake script I wrote to resolve this dependency when I build it. To accomplish that I used CMake's module FetchContent and it currently works ...
Lucas Yotsui's user avatar
-2 votes
1 answer
83 views

I downloaded wxWidgets using vcpkg and tried to compile an example from the wxWidgets website, but I’m getting an ‘unresolved external symbol’ error [duplicate]

The #include for the library works normally and Visual Studio 2019 doesn’t point out any errors in the functions. However, when compiling, the following error appears: code: LNK2019 Description: ...
JMBCODE's user avatar
  • 15
0 votes
2 answers
149 views

How to install wxWidgets on windows 10 using the installer and use it in code::blocks an visual studio 2019 community?

I downloaded wxMSW-3.2.2.1-Setup.exe. How can I use it to install wxWidgets? Does it need any manual configuration or does the installer do all the work for me? After it’s installed, how do I use ...
JMBCODE's user avatar
  • 15
0 votes
2 answers
66 views

CodeBlocks wxWidgets project cannot find the wxWidgets directory

I'm using CodeBlocks to work with the wxWidgets library, but I'm having problems with the library. When I create a wxWidgets project it gives a warning saying: "A corresponding Release ...
Gabriel Torraski's user avatar
0 votes
0 answers
31 views

wxPython GenStaticBitmap does not SetBitmap() when setting a bitmap from a list

I am building a wxPython app that acts like a drawing application and has redo/undo (ctrl+z, ctrl+y) functionality which is currently not working. I am using the GenStaticBitmap to remove flickering ...
malabbism's user avatar
-1 votes
1 answer
140 views

CodeBlocks wxWidgets-3.2.2.1 compile error

Situation I am trying to learn a bit of C++ and I am using the IDE Code::Blocks 20.03 32bit (=C::B), wxWidgets-3.2.2.1 and GNU GCC compiler. I crated a GUI with wxSmith adding wxFrame. Inside it I ...
willy wonka's user avatar
  • 1,450
0 votes
1 answer
28 views

Subclassing wxControl

My goal is to make a control with two buttons, similar to Toolbar tool with wxITEM_DROPDOWN set. I use the following strategy: CDropDownTool::CDropDownTool(wxWindow* parent, int id, const wxBitmap&...
macroland's user avatar
  • 973
4 votes
0 answers
58 views

Why makes wxURL in wxThread a SIGSEGV?

I want to download a zip file and extract it. And I use a free function for that. auto downloadAndExtractFile(const wxString& url) -> bool { // download file auto temp_file = wxFileName:...
B. A. Sylla's user avatar
1 vote
2 answers
53 views

wx.RB_SINGLE makes button unable to be deselected with wxPython

According to the wxWidgets docs1, wxRB_SINGLE requires the programmer to manually handle selecting and deselecting radio buttons from the event handler for the button. However, try as I might, ...
Newbyte's user avatar
  • 2,441
0 votes
0 answers
47 views

wxStyledTextCtrl Unicode clipboard copy/paste problem in Linux

My app uses the wxStyledTextCtrl (STC) and I'm running into a problem when copy/pasting unicode characters out of the STC. I'm able to paste unicode strings into the STC but unable copy out of the STC....
Bob Enohp's user avatar
  • 1,302
1 vote
1 answer
83 views

Windows C++ wrong icon being displayed in explorer with multiple icons in resources file

I have a wxWidgets program where the resources.rc file has two icons in it. Program icon Exit program icon The contents of my resources.rc is: #include "wx/msw/wx.rc" #include "common/...
segmentation_fault's user avatar
0 votes
0 answers
23 views

wxEVT_THREAD event randomly gets lost on Windows

I have a GUI thread and a network thread. When the network thread has downloaded a file, it notifies the GUI thread via a wxEVT_THREAD event. This always works on Mac but on Windows it sometimes gets ...
Yogi Wannabe's user avatar
0 votes
2 answers
29 views

wxToolbar works on Mac but image is scrunched up on Windows

I have a wxWidgets app that runs on Mac and Windows. I use images for the tool buttons and the image sizes are around 48x48. At the end of the tools I have a stretchable space and then another tool ...
Yogi Wannabe's user avatar
-2 votes
1 answer
45 views

wxTreebook with multiple levels [closed]

I'm trying to create a wxTreebook object with multiple (3 in particular) levels of pages but it seems to be imposible. Can anyone say if one can create such objects with wxTreebook or it is ...
Дмитрий Герасимов's user avatar
0 votes
1 answer
45 views

How to post a custom event of a wxWebview object to its parent in wxWidgets?

I am trying to send a drop event to the parent of wxWebview object. I know that wxWebView consumes all received events and I have to create a custom event for its parent. I tried the following code ...
Reza's user avatar
  • 3,493
1 vote
1 answer
85 views

How to manually destroy wxMenu

I have a wxAuiToolBar button which when clicked shows a menu. The menu also has a sub-menu which carries information on recently opened files. The following code is called when the user clicks on a ...
macroland's user avatar
  • 973
0 votes
1 answer
87 views

How to add SVG to an application with wxWidgets?

I'm new to C++ and I want to replace a PNG image in the GUI of my application with a SVG in wxWidgets 3.2.2.1. The part of my XML/XRC file containing information about the image has the following ...
vekomp's user avatar
  • 3
0 votes
2 answers
25 views

WxPython: How would I programatically move the curser to (select) a specific Text Box, triggered by a button press?

This question is the last piece in a larger problem I am trying to solve. I am currently trying to implement a QR scanner to fill multiple fields in a UI. The UI that I want for this is a button ...
hdconway's user avatar
1 vote
1 answer
71 views

wxwidgets wx/wx.h not found

I am writing a sample "Hello World" code from the wxWidgets documentation. I had installed the wxwidgets from source with gtk configured. After that I had installed it system wide. Below ...
Dushyant Patil's user avatar
0 votes
0 answers
24 views

Cant PTRACE_DETACH from process

Ive PTRACE_ATTACH and PCONT to a process. Ive also verified the process is still attached, and thats running, yet I cant PTRACE_DETACH (errno : No such process). Im puzzled after doing all the ...
Olivia22's user avatar
  • 131
1 vote
0 answers
46 views

How to fix 'couldn't find image' error when adding item to resource file in WxWidget windows application?

When I add an item to the resource file, it only copies the directory of the file. So it wouldn't work for my WxWidget windows application, saying that couldn't find the image. resource file only ...
Mike Hua's user avatar
0 votes
1 answer
72 views

C++ wxWidgets application closes when running file download function

I am writing a C++ app that needd to download a file and show a download progress dialog. I am using cURL to complete the doenlaod request, however, for some reason, when I initiate the download by ...
Ethan James's user avatar

1
2 3 4 5
84