Custom MouseCursors and Display Scaling

  1. 3 months ago

    Graham B

    Jul 26 Pre-Release Testers, Xojo Pro The Canada's

    Hi, does anyone know how to create a custom mouse cursor that will correctly size on Windows 10 across all the different scales (100,125,150,175,200,225,250,300)
    I am currently using a 16x16 png image with 16x16,32x32,48x48 sized versions and using

    myCursor = new MouseCursor(MyCursorImage,5,3)

    What I am finding is that the standard cursor for Windows is
    16 pixels on 100,125,150,175, 225,250%
    20 pixel on 200,300%

    Xojos is:
    16 pixels on 100,175,200,300%
    20 pixels on 150,225%
    18 pixels on 250%
    24 pixels on 125%

    (these sizes are rough guesses based on measuring against lines rendered at 16 pixels apart)

    Restarting the app, signing out and back in has no effect.

    Compiling on macOS 10.14.6 on 2019r1.1

or Sign Up to reply!