News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

MDI + WXSMITH Tutorial?

Started by fUsE, July 10, 2009, 11:07:13 AM

Previous topic - Next topic

fUsE

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?

Dr.Optix

I didn't tryed to design MDI apps with wxSmith but maybe you must manually add this:


#include <wx/mdi.h>


Occupation: Hobby Programmer
IDE: Code::Blocks Nightly / CodeLite Latest Stable
Compiler: TDM's GCC/mingw32
Blog: [url="//droptix.wordpress.com"]DrOptix.WordPress.Com[/url]

fUsE

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)