Adding additional forms

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
phil99
In need of some credit
In need of some credit
Posts: 8
Joined: Fri Apr 26, 2013 9:45 pm

Adding additional forms

Post by phil99 »

How do i add additional forms to my app? I tried simply picking the add new and selecting form but the new form seems to be an independent entity... Also is there a way to alter which form opens on init?
pwlaz
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Apr 29, 2013 10:37 am

Re: Adding additional forms

Post by pwlaz »

If you use only one form, than it is assumed that your application will start with this only form.

Now if you add another form to your application it is up to you to choose the moment you will run this form.

You can start the form in just very similar way to the way the first form is started (see the generated file xxxxxxxxApp.cpp). Whether you do it at the beginning of your applications or at some other moment -- depends on the logic of your application.

Pawel
phil99
In need of some credit
In need of some credit
Posts: 8
Joined: Fri Apr 26, 2013 9:45 pm

Re: Adding additional forms

Post by phil99 »

Thanks, got it! Its now working with multiple forms!
Post Reply