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 » [Bug/please explain] TopWindow.Execute in loop
[Bug/please explain] TopWindow.Execute in loop [message #43247] Sun, 15 June 2014 20:28 Go to previous message
timl is currently offline  timl
Messages: 5
Registered: April 2014
Promising Member
Consider this code:
GUI_APP_MAIN
{
	TopWindow w;
	Button b;
	
	w.SetRect(0, 0, 200, 200);
	w << b.HSizePos(20, 20).VSizePos(20, 20);
	
	while (1) {
		w.Execute();
		// PromptOK("Swagetti Yolonese");
	}
}

When I close the window it reopens but seems to be trashed - button disappears or is not responsive and resizing window to smaller reveals that refreshed areas are painted as if there were no ctrls there. Uncomment the line with prompt and it works as expected - you get a prompt first and when window reopens it is fully operational. Tested on svn version 7404.

I believe this is not desirable behavior, but maybe I should give window a rest and not instantly reopen it like that? Smile
 
Read Message
Read Message
Read Message
Previous Topic: ok and cancel button reversed on Linux
Next Topic: Crashing when using MenuBar's
Goto Forum:
  


Current Time: Wed Apr 24 06:25:52 CEST 2024

Total time taken to generate the page: 0.02978 seconds