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 » U++ Library : Other (not classified elsewhere) » BUG dialog does not close
BUG dialog does not close [message #50543] Wed, 14 November 2018 09:41 Go to previous message
slashupp is currently offline  slashupp
Messages: 227
Registered: July 2009
Experienced Member
debian, upp v 12181

clicking the 'x' in title-bar to close test_dialog in following app does not:
the dialog goes away but when main_window is clicked it reappears and hangs.

#include <CtrlLib/CtrlLib.h>
using namespace Upp;

struct DTest : public TopWindow
{
	typedef DTest CLASSNAME;
	DTest() { Title("test-dialog"); }
	virtual ~DTest() {}
};


struct test_bug_dlg : public TopWindow
{
	typedef test_bug_dlg CLASSNAME;
	Button btnTest;
	test_bug_dlg()
	{
		Title("main-window");
		btnTest.SetLabel("Test Dlg");
		btnTest.WhenPush=THISBACK(OnTest);
		Add(btnTest.LeftPos(10,70).TopPos(10,20));
	}
	void OnTest() { DTest dlg; dlg.Execute(); }
};

GUI_APP_MAIN
{
	test_bug_dlg().Run();
}


 
Read Message
Read Message
Read Message
Previous Topic: [BUG] Removed properties of CommonFontInfo struct are referenced in XFtGetFontInfoSys()
Next Topic: how can I draw on the top of a dockwindow?
Goto Forum:
  


Current Time: Thu Jan 27 07:52:57 CET 2022

Total time taken to generate the page: 0.01085 seconds