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  |
 |
koldo
Messages: 3435 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
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 20:01:41 CEST 2025
Total time taken to generate the page: 0.02131 seconds
|