cbpporter Messages: 1427 Registered: September 2007
Ultimate Contributor
What is the simplest way to close your current window and replace it with another window. Basically, swap out the "main" window of your application.
Right now I have to Close and Hide current window, call Run on new window and after new window gets closed, call Show and Run on old window. I couldn't get the desired behavior while using other methods from TopWindow.
dolik.rce Messages: 1791 Registered: August 2008 Location: Czech Republic
Ultimate Contributor
Hi guys,
koldo wrote on Mon, 06 September 2010 15:51
In this case I have some StaticRects for a TopWindow.
To go from one page to other, I hide all StaticRects but the one I want to see.
For example I use this in a setup wizard program.
I used the same approach for setup wizard... I am just not sure if StaticRect is the best choice, ParentCtrl is IMHO much better suited for this purpose. The downsize of this approach is that it assumes all the windows have same size - or you have to resize it properly on each switch.