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 » How to just close a window£¿
How to just close a window£¿ [message #36772] Tue, 03 July 2012 13:05 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
Question coming again Rolling Eyes
	void DoOpen() {
		if(dlg.IsOpen())
			dlg.Close();
		else
			dlg.Run();
	}


it from gui tut "22. Non-modal dialogs",
if i change "dlg.Open()" to "dlg.Run()"(i just want modal dialog)
then if i want to close the dialog i must execute dlg.Close() twice!

What's wrong?
Re: How to just close a window£¿ [message #36875 is a reply to message #36772] Sun, 15 July 2012 21:25 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
If you choose to use Run, you should close window with Break. Thing is, Run starts a new modal loop, to exit the window, you have to end this loop.
Previous Topic: support for maximising on second monitor[FEATURE_REQUEST]
Next Topic: TopWindow minimum size
Goto Forum:
  


Current Time: Mon Apr 22 07:17:48 CEST 2024

Total time taken to generate the page: 0.04823 seconds