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++ Core » Core regression between svn 6693 -> 6697
Re: Core regression between svn 6693 -> 6697 [message #41675 is a reply to message #41672] Thu, 09 January 2014 20:45 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
I have found an issue which seems to affect CursorImage, but only just after a new window is opened, so I doubt that this is the problem you cite.

Otherwise, my current testcase is

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

struct Test : TopWindow {
	virtual void LeftDown(Point p, dword keyflags) {
		WaitCursor h;
		Sleep(2000);
	}
	
	bool flag;

	virtual bool Key(dword key, int)
	{
		if(key == K_CTRL_KEY)
			flag = true;
		if(key == (K_CTRL_KEY|K_KEYUP))
			flag = false;
		Refresh();
		return false;
	}

	virtual Image CursorImage(Point p, dword keyflags)
	{
		LOG("CursorImage " << flag);
		return flag ? Image::Hand() : Image::Arrow();
	}

	void Action()
	{
		LOG("Action " << msecs());
		ProcessEvents();
		Sleep(2000);
		LOG("Action end " << msecs());
	}
	
	virtual void RightDown(Point p, dword keyflags) {
		MenuBar bar;
		bar.Add("Test", THISBACK(Action));
		bar.Execute();
	}
	
	typedef Test CLASSNAME;
	
	Test() {
		flag = false;
	}
};

GUI_APP_MAIN
{
	Test().Run();
}


and I do not seem to see any problems there...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: 6715 nightly build
Next Topic: Callback (THISBACK) Improve
Goto Forum:
  


Current Time: Mon May 13 22:50:26 CEST 2024

Total time taken to generate the page: 0.02146 seconds