Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: fUsE on July 10, 2009, 11:07:13 am

Title: MDI + WXSMITH Tutorial?
Post by: fUsE on July 10, 2009, 11:07:13 am
Hi.

Does anyone know where i can find a nice MDI + wxSmith tutorial?
When i create a new frame & specify wxMDIChild/ParentFrame as the base class it doesnt compile :(

error is it expects class name  before '{'

Some help please?
Title: Re: MDI + WXSMITH Tutorial?
Post by: Dr.Optix on July 10, 2009, 11:26:06 am
I didn't tryed to design MDI apps with wxSmith but maybe you must manually add this:

Code
#include <wx/mdi.h>

Title: Re: MDI + WXSMITH Tutorial?
Post by: fUsE on July 10, 2009, 01:45:38 pm
Thanks DOC. That sorted it.

Now im trying to launch the child frame on a button click event on the parent frame ( child->show(); )

My app compiles and runs fine, but on button click, the app crashes. :shock:

What am i doing wrong?

Biuld Log Output:-
Checking for existence: /home/james/Projects/LINMDI3/bin/Debug/LINMDI3
Executing: /home/james/Projects/LINMDI3/bin/Debug/LINMDI3  (in /home/james/Projects/LINMDI3/.)
Process terminated with status -1 (0 minutes, 4 seconds)