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++ Widgets - General questions or Mixed problems » [Linux] Upp application can block all mouse events
[Linux] Upp application can block all mouse events [message #43161] Wed, 21 May 2014 14:08 Go to previous message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Hi,

When Upp GUI application is not responding to events, it blocks mouse events sent to other GUI programs (gnome menu or unity dash can not be open with mouse click)

Here is sample code:
CursorTest.lay:

LAYOUT(CursorTestLayout, 200, 100)
	ITEM(Button, button, SetLabel(t_("Test")).HCenterPosZ(84, 2).VCenterPosZ(32, -2))
END_LAYOUT

CursorTest.cpp:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <CursorTest/CursorTest.lay>
#include <CtrlCore/lay.h>

class CursorTest : public WithCursorTestLayout<TopWindow> {
	void Test() 	{	Sleep(10000);}

public:
	typedef CursorTest CLASSNAME;
	CursorTest()	
	{
		CtrlLayout(*this, "Cursor Test");
		button.WhenAction = THISBACK(Test);
	};
};

GUI_APP_MAIN
{
	CursorTest().Run();
}


I made test in Ubuntu 12.04 and Debian 6 (both GTK and X11 backends). In both systems mouse events were blocked.

Does anyone know why all other applications can not receive mouse events?

[Updated on: Wed, 21 May 2014 14:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ColumnList clipping problem
Next Topic: Question about Drag and Drop
Goto Forum:
  


Current Time: Sun Apr 28 17:44:10 CEST 2024

Total time taken to generate the page: 0.07159 seconds