can I change the mouse cursor while processing a command ?

can I change the mouse cursor while processing a command ?

Omar_Amen
Advocate Advocate
423 Views
1 Reply
Message 1 of 2

can I change the mouse cursor while processing a command ?

Omar_Amen
Advocate
Advocate

Hi there,
I need to change the mouse cursor while processing a command to a custom cursor icon or even built in icon,
but I don't know if is it possible or not!
I used 

System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Hand;

but didn't work, or may it worked but the Revit app back it again to its default while enter the selection process ...etc !
actually I don't know 😅

0 Likes
424 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor

Not within API.

 

Have you tried p/invoke: SetCursor with WM_SETCURSOR etc?

0 Likes