Search found 122 matches

by Deluge
Tue Dec 22, 2015 9:17 am
Forum: C++ Development
Topic: Connecting wxSizeEvent Messes up Sizers Layout
Replies: 1
Views: 423

Re: Connecting wxSizeEvent Messes up Sizers Layout

Yep, I needed to call wxEvent::Skip() to allow default event handling to be processed. ... void MainWindow::onSize(wxSizeEvent& event) { wxSize windowD = this->GetSize(); int width = windowD.GetWidth(); int height = windowD.GetHeight(); wxString label = wxString::Format(wxT("%ix%i"), width, height);...
by Deluge
Tue Dec 22, 2015 8:57 am
Forum: C++ Development
Topic: Connecting wxSizeEvent Messes up Sizers Layout
Replies: 1
Views: 423

Connecting wxSizeEvent Messes up Sizers Layout

I must be missing something really simple. It's been a while since I coded, so I am very rusty. My problem is that I am trying to use a wxSizeEvent to make modifications to an object (in this case a wxStaticBitmap ). But, when the event is connected and handled the layout of the wxBoxSizer s gets me...
by Deluge
Sun Jul 05, 2015 11:55 pm
Forum: Platform Related Issues
Topic: Compiled applications will not run on Windows 7 64-bit
Replies: 1
Views: 661

Compiled applications will not run on Windows 7 64-bit

I am running Windows 7 64-bit. I have compiled two versions of wxWidgets (wxMSW), 3.0 SVN revision 126923 (which is probably a little older now) and 3.0.2. The SVN version I created a shared library and 3.0.2 static. My programs seem to compile fine but never run and I end up having to kill the proc...
by Deluge
Mon May 13, 2013 6:49 am
Forum: Compiler / Linking / IDE Related
Topic: Compile Error: "does not declare anything"
Replies: 0
Views: 3506

Compile Error: "does not declare anything"

I'm getting a compile error that I don't understand using 2.9.4: g++ -c -O9 -o common.o common.cpp "-I/c/Development/Libraries/wx-2.9/include" In file included from c:/Development/Libraries/wx-2.9/include/wx/log.h:68:0, from c:/Development/Libraries/wx-2.9/include/wx/wx.h:24, from error.h:6, from sy...
by Deluge
Sun Dec 02, 2012 8:39 pm
Forum: General Development
Topic: [wxSVG] Centering an Image
Replies: 1
Views: 1492

[wxSVG] Centering an Image

Anyone familiar with wxSVG? I can't figure out how to center the image of a wxSVGCtrl. It always renders in the top-left corner. I've found some documentation here: http://wxsvg.sourcearchive.com/documentation/2:1.0.10~dfsg0-1/classwxSVGCtrl.html I thought that if I could get hold of the underlying ...
by Deluge
Sun Dec 02, 2012 3:34 pm
Forum: C++ Development
Topic: Can't Access Class
Replies: 2
Views: 1036

Re: Can't Access Class

Thanks, that was exactly my problem. I've changed the name of the header and of the class.
by Deluge
Sun Dec 02, 2012 6:35 am
Forum: C++ Development
Topic: Can't Access Class
Replies: 2
Views: 1036

Can't Access Class

I can't figure out why I can't access my class "Layout": main.h: #include <wx/wx.h> #include "layout.h" class MainWindow : public wxFrame { public: MainWindow(const wxString & title); private: wxPanel *bg; Layout *layout; }; layout.h: #include <wx/wx.h> #include <wxSVG/svgctrl.h> #include "groups.h"...
by Deluge
Sat Dec 01, 2012 5:54 pm
Forum: C++ Development
Topic: Panel Loses Focus on Events in Fullscreen
Replies: 3
Views: 1243

Re: Panel Loses Focus on Events in Fullscreen

Thanks doublemax. Catching the event at the App level was exactly what I needed to do.
by Deluge
Thu Nov 29, 2012 9:47 pm
Forum: C++ Development
Topic: Panel Loses Focus on Events in Fullscreen
Replies: 3
Views: 1243

Re: Panel Loses Focus on Events in Fullscreen

I didn't think about wxSVGCtrl taking the focus. Catching at App level sounds good to me. I am going to try that out. Thanks a lot.

Maybe you guys should make a Newbs forum for programming newbs like me :).
by Deluge
Tue Nov 27, 2012 7:30 pm
Forum: C++ Development
Topic: Panel Loses Focus on Events in Fullscreen
Replies: 3
Views: 1243

Panel Loses Focus on Events in Fullscreen

It seems any mouse/keyboard events triggered while the app is in fullscreen causes my background panel to lose focus. This is a problem because I am trying to set up the Escape key as the only way to exit. Once the background panel loses focus I cannot "Escape" out. I have to put bg->SetFocus() at t...
by Deluge
Tue Nov 06, 2012 11:44 am
Forum: Compiler / Linking / IDE Related
Topic: DLLs with Weird Suffix
Replies: 0
Views: 1514

DLLs with Weird Suffix

I compiled wx 2.9.4 on Windows Vista with MinGW using the following configuration: ../configure --prefix=/mingw --with-msw --with-opengl --disable-static --enable-shared --enable-official_build --enable-vendor="" --with-libpng=builtin --with-libjpeg=builtin --with-libtiff=builtin --with-libxpm=built...
by Deluge
Tue Nov 06, 2012 8:45 am
Forum: Compiler / Linking / IDE Related
Topic: 2.9 and Threads
Replies: 0
Views: 591

2.9 and Threads

Are threads enabled by default in 2.9? I compiled with "--enable-threads" option but wasn't sure if I needed to. Also, does having pthreads installed make any difference when compiling? I know that the compiler searches for pthreads. ----- Edit ----- Okay, should have just looked in the config.log: ...
by Deluge
Thu Jan 05, 2012 11:16 am
Forum: C++ Development
Topic: Loading WAV from Char Array or Resource
Replies: 7
Views: 1634

Re: Loading WAV from Char Array or Resource

You mean if I load it from an external wav? Yes it works.
by Deluge
Thu Jan 05, 2012 11:14 am
Forum: C++ Development
Topic: App Won't Shut Down After Constructing wxJoystick
Replies: 3
Views: 915

Re: App Won't Shut Down After Constructing wxJoystick

Forget that part and the program still doesn't work. controller.h #include <wx/wx.h> #include <wx/joystick.h> class MainWindow : public wxFrame { public: MainWindow(const wxString& title); wxJoystick GetJoysticks(); private: wxJoystick js; // This causes the problem }; controller.cpp #include "contr...
by Deluge
Tue Jan 03, 2012 12:59 pm
Forum: C++ Development
Topic: Loading WAV from Char Array or Resource
Replies: 7
Views: 1634

Re: Loading WAV from Char Array or Resource

This almost worked, but the sound is distorted:

Code: Select all

wxSound bark(sizeof(dog_wav), dog_wav);
if (bark.IsOk())
{
    bark.Play();
}
Tried it in 2.9.