# Custom mouse cursor flashing

**URL:** <https://forum.juce.com/t/custom-mouse-cursor-flashing/4476>\
**Category:** General JUCE discussion\
**Created:** [November 5, 2009, 9:19am UTC](https://forum.juce.com/t/custom-mouse-cursor-flashing/4476 "2009-11-05T09:19:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aquarium](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@aquarium](https://forum.juce.com/u/aquarium)\
**Post date:** [November 5, 2009, 9:19am UTC](https://forum.juce.com/t/custom-mouse-cursor-flashing/4476/1 "2009-11-05T09:19:45Z")

</div>

When I create my own cursor using 32-bit + alpha PNG image (BlackNWhite) and then activate it in my app via setMouseCursor(), it sometimes flash around the current position before change happen, i.e. it can very fast show up in wrong coordinates, but then everything is ok. Not a big deal, but strange issue anyway. Reproduces only with custom images. Am I doing something wrong here?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 5, 2009, 9:26am UTC](https://forum.juce.com/t/custom-mouse-cursor-flashing/4476/2 "2009-11-05T09:26:18Z")

</div>

no, there’s nothing you could be doing wrong… I’ve seen that kind of thing when running in a VM, but not at other times. You don’t actually say which OS you’re talking about, though…

---

<div class="post-metadata">

**Author:** ![aquarium](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@aquarium](https://forum.juce.com/u/aquarium)\
**Post date:** [November 5, 2009, 9:34am UTC](https://forum.juce.com/t/custom-mouse-cursor-flashing/4476/3 "2009-11-05T09:34:12Z")

</div>

I use Windows XP. Btw, I found that the dragging hand cursor is created internally in Juce using array of image data and it doesn’t such flashing. What image format this data represents? Probably I can avoid flashing by using the same image format.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 5, 2009, 9:40am UTC](https://forum.juce.com/t/custom-mouse-cursor-flashing/4476/4 "2009-11-05T09:40:04Z")

</div>

The internal ones use GIF, but it seems bizarre that it would make any difference…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 9:50am UTC](https://forum.juce.com/t/custom-mouse-cursor-flashing/4476/5 "2017-05-12T09:50:37Z")

</div>


