Mouse cursor in ActiViz RenderWindow

Hello,

I have a Windows Forms application with ActiViz C#. I set the form cursor to WaitCursor, but the RenderWindow has the same default cursor.

this.Cursor = Cursors.WaitCursor;

How can I set the WaitCursor on the RenderWindow?

@LucasGandel

Thank you.

You should have a look at vtkRenderWindow.SetCurrentCursor. Setting a custom cursor without setting the cursor filename should work.

I defined my own cursor shape and then I think I set it with following two methods. vtkRenderWindow.SetCurrentCursor(VTKC_CURSOR_CUSTOM);vtkRenderWindow.SetCursorFileName(cur_file). My question is which vtk version begins to support VTKC_CURSOR_CUSTOM? I can’t find it for vtk 8.1.2.
Thanks a lot.

Looks like it was done for 9.1 : https://gitlab.kitware.com/vtk/vtk/-/commit/44b97cf72b5c37413299612f8b26155cdcb0cff3