Normally the GUI components are created in the OnInit-method.
I noticed that it isn’t actually necessary; you can create
wxFrame outside the entire wxApp-object and it’ll still work.
Are there any serious consequences?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Apparently you can construct wxFrame outside of the wxApp object by using the global method wxEntryStart.
The only consequence of this seems to be that you should call wxEntryCleanup()