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

wxBufferedDC can get to work

hi im using wxWidgets in c++, I have been drawing outside of paint events using wcClientDC which caused flicker. I would like help using wxBufferedDC. I literally just replaced wxClientDC with wxBufferedDC, I taut this would work but the code does…
1
vote
1 answer

How to build a stand-alone exe file wxWidgets

How to build a stand-alone exe file with wxWidgets? I'm using C++ and CodeBlocks:
Jessie
  • 363
  • 2
  • 6
  • 20
1
vote
1 answer

Memory leak when using anything involving wxFileName

I'm making use of wxWidgets in my program for directory management and compressing/uncompromising collections of files. As I've been building my file system, I've noticed that I get memory leaks every run. After a lot of testing, I realized that any…
Legacyblade
  • 335
  • 1
  • 5
  • 18
1
vote
1 answer

Can't access files in my Mac APP Bundle

I am using wxwidget on my Mac OSX and just cant make my app access my resources directoy within my app bundle. I have a file name image.bmp in my resources folder and accessing it through : m_bitmap1 = new wxStaticBitmap( this, wxID_ANY,…
Nuno_147
  • 2,817
  • 5
  • 23
  • 36
1
vote
0 answers

Creating application release which involves wx-widget

I am trying to generate an application realease which uses wx widgets. The program compiles and runs fine on my PC. when i move the distribution to another PC it shows errors telling i should run the erlang with smp enabled. On the compiling…
antonpuz
  • 3,256
  • 4
  • 25
  • 48
1
vote
1 answer

wxWidgets painting customization controls

I want to write an application, which must have the same appearance on any platform. I decide use wxWidgets (I never have a large amount of work with this library). Start my customization from ScrollBar. This was a bad decision, (inheritance…
DeadWarlock
  • 720
  • 6
  • 23
1
vote
1 answer

How to set keyboard focus to NULL window in wxWidgets?

In WinAPI you can call global function SetFocus(HWND) to set focus to NULL window (keystrokes are ignored): ::SetFocus(NULL); wxWidgets have wxWindow::SetFocus(void) virtual member function so you cannot pass NULL. How to do portable equivalent of…
user3123061
  • 757
  • 5
  • 14
1
vote
2 answers

wxWidgets: Memory error upon closing custom modal dialog

I've read this, but I still don't understand what I did wrong with the code. Here's the bmNewFromImageDialog.h, the class that extends wxDialog. #ifndef BMNEWFROMIMAGEDIALOG_H #define BMNEWFROMIMAGEDIALOG_H #include "./../utils/includer.h" //…
hello all
  • 252
  • 2
  • 17
1
vote
4 answers

wxwidgets saveFile

Im trying to draw a simple picture and save it to a file in wxwidgets. This is the code i have so far. However this code will never create the test.png picture. wxBitmap myBitmap; wxMemoryDC dc; dc.SelectObject(myBitmap); wxFont…
Mike
  • 11
  • 2
1
vote
0 answers

Hide/Disable mouse cursor in wxWidgets/wxPython on Linux

I'm using wxWidgets through wxpython. Under MS Windows (python 2.7, wxwidgets v3.0), the following code hides the mouse cursor (where self is the top-level frame) : cursor = wx.StockCursor(wx.CURSOR_BLANK) self.SetCursor(cursor) ...this works…
RLI123
  • 487
  • 3
  • 13
1
vote
2 answers

Getting elapsed time between updates in wxWidgets

I am builing an interactive application using the latest wxWidgets(3.0.1) and OpenGL(3.3) on Windows. I have gotten to the point where I have a wxGLcanvas rendering onto a wxPanel and it works fine. The rendering is done in the paint event for that…
John
  • 619
  • 2
  • 9
  • 24
1
vote
1 answer

If Possible, How Can One Set Either a Background Color on Cells within a Sizer or Gridlines for the Sizer?

I am flailing about with wxWidgets, in particular, the wx.Sizer in wxPython. I have read the documents, I have a copy of wXPython in Action before me, and have set aside the problem to work on other things a better mental model of sizers hopefully…
MetaHyperBolic
  • 1,017
  • 2
  • 11
  • 22
1
vote
1 answer

Is there a way to be notified when the user makes changes in a wxStyledTextCtrl?

I have a wxWidgets application that has a wxStyledTextCtrl. But for the life of me, I cannot figure out how to get notified of modification events. I have the following code: void CMainWindow::OnDocumentModified(wxStyledTextEvent & event) { …
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
1
vote
1 answer

how to animate picture without making it flicker using wxWidgets in erlang?

I am trying to make images seems like moving. I clear the screen and put the images back on it, but the screen is flickering a lot. Is there a way to make it seems like moving without flicker that much? the "draw_asteroids" is called every 100 ms…
user1617940
  • 31
  • 1
  • 4
1
vote
2 answers

create a command terminal like window using wx controls

I am trying to create a command terminal like window..I have used the following code..Problem is that it set the command prompt as ">>>" that is editable. I want window with fixed ">>>" with cursor waiting for command...now the issue is that user…
user2764578
  • 61
  • 3
  • 10