V6 problem with setting cursor in prompt

Hi @dale,

i set my cursor in a Rhino.Input.Custom.GetTransform prompt like this:

self.SetCursor(System.Windows.Forms.Cursors.Arrow)

which works in V5, but in V6 i receive a type error:

TypeError: expected CursorStyle, got Cursor

I cannot find anything about CursorStyle. Is this a bug in V6 ?

_
c.

Hi @clement,

Looks like Rhino 6 requires a cursor style.

self.SetCursor(Rhino.UI.CursorStyle.Default)

ā€“ Dale

1 Like