User forums > Using Code::Blocks

MDI + WXSMITH Tutorial?

(1/1)

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:


--- Code: ---#include <wx/mdi.h>

--- End code ---

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)
 

Navigation

[0] Message Index

Go to full version