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 » Changing mouse icon with MouseEvent
Changing mouse icon with MouseEvent [message #54793] Wed, 16 September 2020 18:59 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hi all

I wanted to change mouse icon when clicking, but I cannot.
Please tell me what I am doing wrong. Thank you!

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

struct App : TopWindow {
	virtual Image MouseEvent(int event, Point, int, dword) {
		if ((event & Ctrl::BUTTON) == Ctrl::LEFT && (event & Ctrl::ACTION) == Ctrl::DOWN) 
			return Image::Hand();
		return Image::Arrow();
	}
};

GUI_APP_MAIN
{
	App().Run();	
}


Best regards
IƱaki

[Updated on: Wed, 16 September 2020 19:37]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [GlCtrl] Integration and use of Glad loader instead of Glew
Next Topic: Background color of StaticText or EditString
Goto Forum:
  


Current Time: Fri Mar 29 00:21:26 CET 2024

Total time taken to generate the page: 0.01287 seconds