Change mouse size

Just starting out? Need help? Post your questions and find answers here.
jak64
Enthusiast
Enthusiast
Posts: 625
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Change mouse size

Post by jak64 »

Hello,
I am writing a program for a visually impaired child.
I would like to magnify the mouse arrow, programmatically.
We can do it with Windows but I would like to do it by code in my program.
Thank you for your help.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4954
Joined: Sun Apr 12, 2009 6:27 am

Re: Change mouse size

Post by RASHAD »

It can be done for the Desktop or for your Application
But for the Desktop I don't recommend
Egypt my love
KianV
User
User
Posts: 16
Joined: Thu Dec 26, 2019 3:31 pm

Re: Change mouse size

Post by KianV »

If you are using a Canvas gadget then the #PB_Cursor_Invisible flag can be used to hide the system pointer when it is over the gadget.
Then you could draw a sprite at the mouse co-ordinates.
(See the CanvasGadget example program, although this does use a different system cursor, but the basic principle is there.)
Alternatively, you could just use a sprite at the mouse co-ordinates, although it may not be too pretty if there is a lot of lag caused by processing in-between checks.
jak64
Enthusiast
Enthusiast
Posts: 625
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Change mouse size

Post by jak64 »

Thank you
Post Reply