c++ - WxWidgets Show form after first is closed -


i'm working on project involves ogre 3d part , wxwidgets user interface. have followed hello world tutorial , i'm able create application, window , message map. goal display @ startup window can choose specific settings fullscreen, texture quality , other application specific settings. after have chosen settings, window needs close , start ogre part settings window.

i have tried put code start new window ogre in init function:

bool myapp::oninit() { myframe *frame = new myframe( "settings", wxpoint(50, 50), wxsize(640, 480) ); frame->show( true ); start_ogre(); return true; } 

the problem both forms showed @ same time. application, frame , window in code split in seperate classes. tried put code in main.cpp after wxwidget code:

wximplement_app(myapp); start_ogre(); 

this gives same problem. tried in close event, nothing.

is there easy way make ogre form show when settings form closed without shutting down application or starting both @ same time?

you use dialog instead of frame , show using showmodal(). block until user dismisses or closes dialog. need derive dialog wxdialog , need add buttons appropriate ids close or dismiss dialog. can use createstddialogbuttonsizer(long) method dialog inherits wxdialog.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -