U++ framework
Do not panic. Ask here before giving up.

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: 3460
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: Mon Jun 29 21:06:40 GMT+2 2026

Total time taken to generate the page: 0.00665 seconds