This is a migrated thread and some comments may be shown as answers.

Suggest adjust the cursor for the high DPI screen!

1 Answer 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
wu
Top achievements
Rank 1
Veteran
wu asked on 18 Oct 2018, 01:36 PM

 In high DPI screen,many software's cursor is too small,include the telerik UI,but besides the microsoft.
I got the following code to resolve the problem,you can try:

static ConstructorInfo _cursorScaleStreamCtor= typeof(Cursor).GetConstructor(new Type[2]
   {
    typeof(Stream),
    typeof(bool)
   });
   //uri refer to the *.cur file(normal 32x32),compile for resource
   internal static Cursor LoadCursor(Uri uri)
        {
            StreamResourceInfo resourceStream = Application.GetResourceStream(uri);
            if ( _cursorScaleStreamCtor != null)
            {
                return (Cursor)_cursorScaleStreamCtor.Invoke(new object[2]
                {
                    resourceStream.Stream,
                    true
                });
            }
            return new Cursor(resourceStream.Stream);
        }


1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 Oct 2018, 09:06 AM
Hello Wu Yang,

Thank you for the suggestion. I will include this information in the internal description of the following feedback item. Also, I've updated your Telerik points as a small thanks for investing your time to give this suggestion.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
wu
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or