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+.

Information:

Current stable version: 3.0.5
Current development version: 3.1.5
Old stable version: 2.8.12

Homepage:

http://www.wxwidgets.org/

Documentation:

Books:

4153 questions
1
vote
1 answer

How can a wxpython frame "steal" and "return" focus similar to the Dash app?

I want to make a heads-up display that pops up it's frame, taking focus from the previous application and then gives focus back to that application when it's done. wxPython frames have Hide and Show methods that work but don't focus the application.…
Michael Fox
  • 3,632
  • 1
  • 17
  • 27
1
vote
1 answer

wxSound. Undefined reference to PlaySoundW@12

I try to use wxSound to play sound, but when I try to compile and linking all project. I have this error: C:\wxWidgets-3.0.2\build\msw/../../include/wx/msw/winundef.h:171: undefined reference to `PlaySoundW@12' I Google it and got the answer about…
Neka
  • 1,574
  • 4
  • 22
  • 36
1
vote
2 answers

Play Video with GStreamer and wxPanel

I'm learning GStreamer and its fun, but I have hit a wall in using it with wxWidgets. No matter what I try I cannot break through. Examples out there are GTK/Qt which are helpful only to some limits. Here is Current code (which does not work) and…
Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93
1
vote
2 answers

Posting to a URL with wxWidgets

Does anyone have some sample code showing how to POST to a URL using wxWidgets? The documentation and discussion forums imply that it's possible but the methods in wxHTTP are very low-level compared to what you find in .NET and scripting languages…
acfrancis
  • 3,569
  • 25
  • 21
1
vote
1 answer

wxPython: Data binding with controls

How can I databind the value self.text in MyModel to the controls in the wx.Frame? When the text control changes the text I would like the label to change aswell as the contents of the other text control automatically. (ideally without having to…
Har
  • 3,727
  • 10
  • 41
  • 75
1
vote
1 answer

How to stop cmake add wxjpeg.lib to visual studio project?

I have a project that uses both OpenCv and wxWidgets in a static library. These two libraries have definitions for jpeg and hence are generating conflicts during compilation. As I am not using jpeg which is inside wxwidget, I would like to remove…
mans
  • 17,104
  • 45
  • 172
  • 321
1
vote
0 answers

How can I set a transparent background colour in wxWidgets?

I am trying to create an application that sits on the desktop, and the main graphic for the application is a png which I load into my program as a wxStaticBitmap. My problem is that the png has parts which are transparent which wxStaticBitmap…
tom
  • 354
  • 4
  • 15
1
vote
1 answer

Passing an argument to create a window using wxpython?

I am trying to learn how to make a GUI in Python. Following an online tutorial, I found that the following code 'works' in creating an empty window: import wx from sys import argv class bucky(wx.Frame): def __init__(self, parent, id): …
1
vote
2 answers

wxWidgets: Get some unique machine ID to use in validation/registration

Does wx provide a handy way to get anything like this in a platform-independent way? I don't think C++ libs themselves provide anything. I don't have a definite idea what should be used for the unique ID... MAC address is common but what else could…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
1
vote
1 answer

wxWidgets ListView headers not showing

The headers of my ListCtrl are not showing up. The entire bar that contains "Names" and "Values" in this image doesn't show up. I am using Codeblocks with the built in editor. Here is the code I used to add a column and dummy data and an image of…
Nick
  • 284
  • 1
  • 2
  • 14
1
vote
2 answers

wxWidgets exception handling

When unhandled exception is handled in wxWidgets application in Windows, program shows Abort-Retry-Ignore message produced by Widgets exception handler. I want to get normal unhandled exception behavior: program should terminate with standard…
Alex F
  • 42,307
  • 41
  • 144
  • 212
1
vote
1 answer

Converting STL unicode string to wxString gives empty string

My code is: #include #include #include int main(int n, char** c) { std::string a = "你好"; wxString b = a; std::cerr <
Martin Ellison
  • 1,043
  • 1
  • 13
  • 25
1
vote
1 answer

compile error using boost asio in a wxwidget application

I am trying to use boost::asio in a wxwidget application. If I add boost::asio before wxwidget headers, I am not getting any error, but when I add boost::asio header after wxwidget header, I am getting error is this line (line 24) in file…
mans
  • 17,104
  • 45
  • 172
  • 321
1
vote
1 answer

Wxwidget wxTimer causes random access violation on application close

I have a fairly simple wxTimer loop on a wxFrame window using wxWidgets v3.0.1 that randomly causes an access violation when a close event is handled (e.g. file/exit or X on dialog frame), the m_timer.stop() is then called before destroy(); I have…
Swatcat
  • 73
  • 6
  • 21
  • 57
1
vote
1 answer

Is there any way to implement functionality similar to wpf expander using c++ and wxwidget

I want to implement a GUI and I like to hide part of screen when it is not needed, similar to the expander (http://wpftutorial.net/Expander.html) in wpf. I am using wxwidget.
mans
  • 17,104
  • 45
  • 172
  • 321