Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Simple way of switching dialogs
Simple way of switching dialogs [message #28540] Mon, 06 September 2010 12:34 Go to next message
cbpporter is currently offline  cbpporter
Messages: 1401
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.
Re: Simple way of switching dialogs [message #28548 is a reply to message #28540] Mon, 06 September 2010 15:51 Go to previous messageGo to next message
koldo is currently online  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello cbpporter

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.

Perhaps this is not the fanciest way but it is simple and gui behavior is right. When I closed and opened windows, the gui behavior was not the best Smile.


Best regards
IƱaki
Re: Simple way of switching dialogs [message #28549 is a reply to message #28548] Mon, 06 September 2010 16:02 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
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.

Honza
Previous Topic: Howto set the icon for the application/and or topwindow in the code?
Next Topic: New Theme caption problem.
Goto Forum:
  


Current Time: Mon Apr 22 08:17:12 CEST 2024

Total time taken to generate the page: 0.81853 seconds