const cursor = new Cursor(0);
control.cursor = cursor;
console.writeln(control.cursor === cursor) // false
You're right. If I open a second dialog above the first one(it stays visible) then custom cursor works on the second one ?I have never managed to change the cursor either.
My observations:
I wonder if the underlying cause to these two observations are linked?
- The Image Annotation Script -> Preview window does mange to change the cursor. However, in my script, I am unable to change the cursor.
- The Image Annotation Script main dialog stays visible when the preview dialog window is displayed. In my script, the main dialog disappears when a dialog is displayed. I don't know why.