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 next 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
Re: [Bug/please explain] TopWindow.Execute in loop [message #43257 is a reply to message #43247] Mon, 16 June 2014 21:22 Go to previous messageGo to next message
mirek is currently online  mirek
Messages: 12015
Registered: November 2005
Ultimate Member
It works just fine in win32.

Are you testing in linux?

Mirek
Re: [Bug/please explain] TopWindow.Execute in loop [message #43259 is a reply to message #43257] Tue, 17 June 2014 15:06 Go to previous message
timl is currently offline  timl
Messages: 5
Registered: April 2014
Promising Member
Yes - Ubuntu 12.04.4 LTS, 64 bit version.
Previous Topic: ok and cancel button reversed on Linux
Next Topic: Crashing when using MenuBar's
Goto Forum:
  


Current Time: Mon Sep 16 10:08:30 CEST 2019

Total time taken to generate the page: 0.00831 seconds