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
6
votes
7 answers

Starting wxWidgets C++ need a gentle nudge

So I've been learning C# for like a year now (I'm 20 years old) and I'm getting pretty confident with it. I've also been meddling with C++ every now and again. For example just recently I've been following the Nehe OpenGL tutorials for C++ and I…
Daniel
  • 865
  • 1
  • 8
  • 12
6
votes
8 answers

New project: I am having troubles picking a language to use

I am starting my first independent for profit venture. I am having a hard time deciding what language to use. I want to write my app in Perl, but I don't think it will be simple enough to compile. If I don't write it in Perl I will write it in…
J.J.
  • 4,856
  • 1
  • 24
  • 29
6
votes
4 answers

How can I capture all exceptions from a wxPython application?

I'm writing a little debug app for a bit of kit we're developing and I'd like to roll it out to a few users to see if they can provoke any crashes. Does anyone know a way of effectively wrapping a wxPython app to catch any and all unhandled…
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
6
votes
4 answers

how to set a menubar icon on mac osx using wx

I could not find any pointers on how to create a menubar icon on OSX using wx. I originally thought that the wxTaskBarIcon class would do, but it actually creates an icon on the Dock. On Windows, wxTaskBarIcon creates a Systray icon and associated…
Dprado
  • 1,610
  • 1
  • 13
  • 13
6
votes
2 answers

can't get wxHaskell to work from ghci on Mac

I'm trying to run an example using EnableGUI function. % ghci -framework Carbon Main.hs *Main> enableGUI >> main This is what I get instead of a working program: 2013-01-14 00:21:03.021 ghc[13403:1303] *** Assertion failure in +[NSUndoManager…
Valentin Golev
  • 9,965
  • 10
  • 60
  • 84
6
votes
2 answers

Remove controls wxWidgets

I found this quite hard to find from searching but quite simply, how do you remove controls from a panel? I have some wxStaticText and wxTextCtrl and I want to swap delete the existing items and replace them with new ones? Is there some sort of…
Bushes
  • 1,010
  • 1
  • 18
  • 37
6
votes
1 answer

How to use AddSubclassFactory from wxPython?

I cant find any examples online on how to use this method. I think that It may be something that I will use. Can someone provide me an example on how to use this method? http://wxpython.org/docs/api/wx.xrc.XmlResource-class.html
user1513192
  • 1,123
  • 4
  • 17
  • 29
6
votes
3 answers

Command line arguments in wxWidgets

Is there a way I can read the command line arguments passed into a C++ wxWidgets application? If so, could you please provide an example of how to do so.
jack
  • 562
  • 1
  • 11
  • 22
5
votes
1 answer

Unable to reach breakpoint in Visual Studio

I am facing a odd behavior of Breakpoints in Visual Studio 2010 Express. Below is the code with breakpoints. I am able to break at the first breakpoint (Line 159), but stepping after line 160, the cursor vanishes, i.e after this image of code…
Vinayak Garg
  • 6,518
  • 10
  • 53
  • 80
5
votes
3 answers

Refreshing wxGrid with dynamic contents

This doesn't seem to be as simple as I'd hoped: Using wxWidgets (2.8 stable series), I have a wxGrid (not subclassed) with a custom “data adapter” as a wxGridTableBase-derived class. wxGrid* grid = new wxGrid (this, ID_TABLE); grid->SetTable (new…
BRPocock
  • 13,638
  • 3
  • 31
  • 50
5
votes
1 answer

Easy way to get a wxTextCtrl click event?

Is there an easy way to handle when a user clicks on a wxTextCtrl? After reading the docs wxTextCtrl I see that there isn't a click or double click event. I understand that there is no such thing as "click" events in wxWidgets from the question…
Chris Andrews
  • 1,881
  • 3
  • 21
  • 31
5
votes
1 answer

Code::Blocks WxWidget error - No Target! You should use wx-config program for compilation flags?

I can't get the default WxWidget template that comes with Code::Blocks to compile. The error I receive is error "No Target! You should use wx-config program for compilation flags! (amongst others) Google led me to some links but I can't seem to…
natli
  • 3,782
  • 11
  • 51
  • 82
5
votes
1 answer

Draw a scaled bitmap using wxhaskell

The imageviewer example shows how to display an image in a ScrolledWindow. What if I want to display the image in the available space, scaling the bitmap as needed? My google-fu failed me on this one. edit: I thought I had something with…
David V.
  • 5,708
  • 3
  • 27
  • 27
5
votes
1 answer

Remove beep from message dialog

I've tried to google it and I've looked in the wxpython docs but I just can't seem to find a way-- can you remove the annoying "error" beep that wx.MessageDialog makes when it pops up (aka when you call .ShowModal())?
Zac Smith
  • 328
  • 1
  • 10
5
votes
3 answers

Can I change the status of individual members of a base class to private?

I am using wxWidgets where, if you have ever used it, you will know that there are a lot of public functions in the base class. I recently ran into a situation where I would not want a method SetText() be called directly from the derived class. That…
Samaursa
  • 16,527
  • 21
  • 89
  • 160