Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a wxWidgets GUI with multiple stages

There's lots of information about creating different layouts, dialogues, even custom controls. However I've not been able to find out how to create a window that has multiple seperate "stages", like an installer, or many of Visual Studio's project wizards.

I guess it could be done by keeping the information seperate from the controls and updating the information on stage changes as needed, then deleteing everything and recreating the window contents each time, but is this really the only and best way? Are there issues with the window size, layout, etc. that I will need to deal with that don't occur when everything is added in the frames constructor?

like image 937
Will Avatar asked Nov 14 '22 19:11

Will


1 Answers

wxWizard is a great class, but I would suggest it only when you have linear flow of steps/stages.

I think the best idea for you is to create non-re-sizable (just do not use wxRESIZE_BORDER style) frame and set of classes that create/destroy in-line layout on demand. Another option is to extend wxWizard class and supply more navigation functionality to it, but I have doubt you really need that.

like image 115
stilz Avatar answered Dec 27 '22 11:12

stilz