Author Topic: MDI + WXSMITH Tutorial?  (Read 3949 times)

Offline fUsE

  • Single posting newcomer
  • *
  • Posts: 3
MDI + WXSMITH Tutorial?
« 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?

Offline Dr.Optix

  • Multiple posting newcomer
  • *
  • Posts: 30
  • I'm studying OS Developing.
    • DrOptix Blog
Re: MDI + WXSMITH Tutorial?
« Reply #1 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>

Occupation: Hobby Programmer
IDE: Code::Blocks Nightly / CodeLite Latest Stable
Compiler: TDM's GCC/mingw32
Blog: DrOptix.WordPress.Com

Offline fUsE

  • Single posting newcomer
  • *
  • Posts: 3
Re: MDI + WXSMITH Tutorial?
« Reply #2 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)