How to use an image as cursor

William de Smet wdesmet at wanadoo.nl
Wed Mar 29 07:17:36 EST 2006


Thanks Jonathan,

That sounds like a good idea.
So far I used the code:
on mousemove
set the loc of img "cursor.gif" to the mouseloc
end mousemove

But how do I position the image one pixel below the image?
Something with Topleft?

greetings,

William de Smet

2006/3/29, Jonathan Lynch <jonathandlynch at gmail.com>:
> I have put some thought into this:
>
> 1) You can make a cursor that is a single dot (or invisible)
> 2) You can make an image that automatically follows the cursor, and on every
> mousemove is positioned so that its visible portion is exactly one pixel
> below or to the side of the dot (or invisible hotspot)
>
> This way, the image will look like it is the cursor, and you can make it as
> big and colorful as you wish. The image will never actually be under the
> hotspot of the cursor, it will always be one pixel off. When you click on
> the stack, the click will actually hit the stack, not the pretend cursor.
>
> I have experimented with this, and so I know it works.
>
>
> On 3/28/06, William de Smet <wdesmet at wanadoo.nl> wrote:
> >
> > Hi there,
> >
> > Because I work with disabled children I want to use a bigger cursor in
> > my little app.
> > The documentation says that you van make your own cursor when the
> > image is 16x16 or 32x32 pixels. But I want and need a bigger cursor
> > and so far I can't get it to work.
> >
> > Any suggestions?
> >
> > Greetings,
> >
> > William de Smet
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the Use-livecode mailing list