Page 1 of 1
Custom cursor
Posted: 25 Mar 2019, 11:21
by Aniak
Hi,
what is the best way to create custom mouse cursor in Noesis. I saw the
viewtopic.php?f=3&t=256&p=1296&hilit=cursor#p1296 disscusion. Have something changed since then?
Re: Custom cursor
Posted: 25 Mar 2019, 13:40
by sfernandez
We have support for FrameworkElement.Cursor property since 2.1 version, allowing you to specify different cursors for specific UI elements. The available values are defined in the Cursor enumeration.
To be notified when cursor should be changed you can register a callback with Noesis.GUI.SetCursorCallback().
Re: Custom cursor
Posted: 26 Oct 2021, 18:31
by Gosha
Hey! Do you have any plans to add support for custom cursors to noesis?
Re: Custom cursor
Posted: 26 Oct 2021, 18:53
by sfernandez
Yes, issue
#1109 is planned for next 3.1.2 release, and implemented already.
This will allow you to use a .cur/.ani resource as cursor for any UI element:
<Grid Cursor="Path/To/CustomCursor.cur"/>
Re: Custom cursor
Posted: 26 Oct 2021, 21:37
by Gosha
Cool! This is exactly what I need.
Do you have an ETA?
Re: Custom cursor
Posted: 27 Oct 2021, 10:55
by sfernandez
3.1.2 version will be released probably next week.
Something I want to remark is that we implemented the support in the core library for specifying a custom cursor, but how they are loaded and set in the operating system are part of the integration layer that the client must implement. For example, our application framework will provide the code to set the custom cursor for Windows in the Win32Display. You could use that as reference for your own implementation.