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++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » BUG: "Close();" does not!
BUG: "Close();" does not! [message #41877] Mon, 03 February 2014 07:38 Go to previous message
slashupp is currently offline  slashupp
Messages: 231
Registered: July 2009
Experienced Member
Using svn 6840 on debian:

The call to Close() in following does not close the window:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

class testclose : public TopWindow
{
public:
	typedef testclose CLASSNAME;
	testclose();
	
	ArrayCtrl ar;
	
	void armenu(Bar &bar);
	void DoClose();
};

testclose::testclose()
{
	Title("testclose");
	SetRect(100,100,300,300);
	
	ar.SetRect(2,2,200,200);
	Add(ar);
	
	ar.WhenBar = THISBACK(armenu);
}

GUI_APP_MAIN
{
	testclose().Run();
}

void testclose::armenu(Bar &bar)
{
	bar.Add("Close", THISBACK(DoClose));
}

void testclose::DoClose()
{
	Close();
}


If I call DoClose() from a button.WhenPush(..) it works; from a window menu, it works, but from this popup-menu it does not .. ?


[Updated on: Mon, 03 February 2014 12:16]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unability to debug
Next Topic: Problematic hack in upp::Build.cpp
Goto Forum:
  


Current Time: Sat Apr 27 18:52:17 CEST 2024

Total time taken to generate the page: 0.06006 seconds