# How to change mouse cursor when we mose the mouse in ResliceCursorWidget

**URL:** https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954
**Category:** Web
**Created:** [November 25, 2022, 12:29pm UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954 "2022-11-25T12:29:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![stoune](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/eb8c5e/32.png) [@stoune](https://discourse.vtk.org/u/stoune)
#### Post date: [November 25, 2022, 12:29pm UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954/1 "2022-11-25T12:29:24Z")

</div>

Hey,

Actually when we click at the sphere in center of an actor in `ResliceCursorWidget`, the mouse cursor turns to another form:

![Screenshot from 2022-11-25 13-26-01](https://discourse.vtk.org/uploads/default/original/2X/8/8f426e245fb71c7566f1184f06c091b7f348e0d2.png)

I need to change this form, to show “Nothing” in case we click and move the mouse cursor, but I don’t know why.

I want to do this because this actual form of cursor doesn’t let us to see what is behind, it’s masking the vue.

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [November 25, 2022, 12:50pm UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954/2 "2022-11-25T12:50:31Z")

</div>

Look at `publicAPI.updateCursor` in `ResliceCursorWidget/behavior.js`. You may have to inherit from it to overload it.

---

<div class="post-metadata">

### Author: ![stoune](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/eb8c5e/32.png) [@stoune](https://discourse.vtk.org/u/stoune)
#### Post date: [November 25, 2022, 2:33pm UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954/3 "2022-11-25T14:33:07Z")

</div>

Thank you for your answer,

```auto
publicAPI.updateCursor = function () {
   switch (model.activeState.getUpdateMethodName()) {
     case InteractionMethodsName.TranslateCenter:
       model._apiSpecificRenderWindow.setCursor('move'); //none

       break;

```

I modified the `setCursor` value to none, but in this case I can’t see the cursor even when I hover over it, is there a way to say : set the cursor to none only when I click on it?

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [November 25, 2022, 2:49pm UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954/4 "2022-11-25T14:49:28Z")

</div>

Not that I know of.

---

<div class="post-metadata">

### Author: ![YaoDongcai](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yaodongcai/32/7110_2.png) [@YaoDongcai](https://discourse.vtk.org/u/YaoDongcai)
#### Post date: [May 19, 2023, 9:03am UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954/5 "2023-05-19T09:03:52Z")

</div>

Hi,If you need to change the style, you need to make svg changes in RenderWindow.js

---

<div class="post-metadata">

### Author: ![stoune](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/eb8c5e/32.png) [@stoune](https://discourse.vtk.org/u/stoune)
#### Post date: [June 16, 2023, 11:28am UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954/6 "2023-06-16T11:28:01Z")

</div>

Thank you for your answer, do you have an example of that?

---

<div class="post-metadata">

### Author: ![YaoDongcai](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yaodongcai/32/7110_2.png) [@YaoDongcai](https://discourse.vtk.org/u/YaoDongcai)
#### Post date: [June 27, 2023, 7:14am UTC](https://discourse.vtk.org/t/how-to-change-mouse-cursor-when-we-mose-the-mouse-in-reslicecursorwidget/9954/7 "2023-06-27T07:14:18Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/0/0695e6e841acfa914a3fa3765c9de7c1e5701188.png)
