Home Questions Is there a way to make the cursor transparent at different time

Is there a way to make the cursor transparent at different time

DWQA QuestionsCategory: Custom Task DevelopmentIs there a way to make the cursor transparent at different time
Michael Huang asked 6 years ago
To make the cursor visible at the starting location but at movement onset the cursor disappears (turns transparent) and then reappears at movement end. In addition, we are trying to make the cursor, after the end of movement, passively move to the actual target location while maintaining a transparent cursor. The way we are doing now is changing the color of cursor black to match the background so that it is not visible and then changing it back to the cursor colour (green) at the end of movement. When we passively move the cursor to the actual target location we see the black cursor, which we do not want to see.
Duncan McLean Staff replied 6 years ago

Hi Michael,

You can turn a VCode off in 3 ways:

1. Set VCode(2) = 0 – signals that the code should not be drawn
2. Set VCode(9) = 0 – set the opacity to 0 means the target is completely see through
3. Set VCode(5) = -2^31 – Set the fill color of the target to “no fill”

Any of those will work for you.

Cheers!
Duncan

Michael Huang replied 6 years ago

Thank you very much