On mouse down event cursor

I have made a custom mouse cursor before, but I would like to get it so it only displays either,

on a mouse down event, or

when the mouse goes over a particular button, or group of buttons.

would this have something to do with targets?