HideMousePointer

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

HideMousePointer

Post by eddy »

Hi
I'm coding to code a windowed screen editor.
But ExamineMouse() hides the mouse pointer.

I don't know if there's the same problem on MAC and Linux ?

Code: Select all

HideMousePointer ( hidePointer = true / false  ) 
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: HideMousePointer

Post by gnasen »

If I remember right, there is a ReleaseMouse() command. However if you use it, you will have to check the mouse coordinates the "old window way"
pb 5.11
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: HideMousePointer

Post by Kaeru Gaman »

the MousePointer on the Screen should be displayed with a sprite.
the MouseLib also locks the Mouse Position to the Screen Area,
so you would need to ReleaseMouse to leave the Screen and use the ButtonGadgets, anyways.
oh... and have a nice day.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: HideMousePointer

Post by eddy »

I found a cross-platform solution without using opened screen. :mrgreen:
:arrow: scrollareaGAdget + ImageGadget + Timer + AlphaBlend Image

PB gadgets support AlphaChannel!!
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: HideMousePointer

Post by Kaeru Gaman »

:shock:
oh... and have a nice day.
Post Reply