Custom cursor
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?
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?
-
sfernandez
Site Admin
- Posts: 3152
- Joined:
Re: Custom cursor
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().
To be notified when cursor should be changed you can register a callback with Noesis.GUI.SetCursorCallback().
Re: Custom cursor
Hey! Do you have any plans to add support for custom cursors to noesis?
-
sfernandez
Site Admin
- Posts: 3152
- Joined:
Re: Custom cursor
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:
This will allow you to use a .cur/.ani resource as cursor for any UI element:
Code: Select all
<Grid Cursor="Path/To/CustomCursor.cur"/>
-
sfernandez
Site Admin
- Posts: 3152
- Joined:
Re: Custom cursor
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.
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.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 2 guests