HISE Logo Forum
    • Categories
    • Register
    • Login

    Different OS Cursors?

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 218 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mmprodM
      mmprod
      last edited by

      I believe if I wanted to use macOS's cursors, I would have to download svg copies of those and use those svg paths with .setMouseCursor. And same for windows. Does this mean I have to have some way to detect the OS, and change which cursor is displayed accordingly?

      For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
      John 3:16

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @mmprod
        last edited by

        @mmprod but why?

        mmprodM 1 Reply Last reply Reply Quote 0
        • mmprodM
          mmprod @Christoph Hart
          last edited by

          @Christoph-Hart for example: if I hover over a knob, the mouse turns into the cursor rather than a pointer to show that the knob is clickable

          For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
          John 3:16

          C 1 Reply Last reply Reply Quote 0
          • C
            Consint @mmprod
            last edited by

            @mmprod A few days ago I made a pull request to update the documentation.:

            Instead of pathIcon, one of the following standard cursors can also be used as a string:

            Property Description
            NoCursor An invisible cursor.
            NormalCursor The standard arrow cursor.
            WaitCursor The normal hourglass or spinning-beachball 'busy' cursor.
            IBeamCursor A vertical I-beam for positioning within text.
            CrosshairCursor A pair of crosshairs.
            CopyingCursor The normal arrow cursor, but with a "+" on it.
            PointingHandCursor A hand with a pointing finger, for clicking on web-links.
            DraggingHandCursor An open flat hand for dragging heavy objects around.
            LeftRightResizeCursor An arrow pointing left and right.
            UpDownResizeCursor An arrow pointing up and down.
            UpDownLeftRightResizeCursor An arrow pointing up, down, left and right.
            TopEdgeResizeCursor A platform-specific cursor for resizing the top-edge of a window.
            BottomEdgeResizeCursor A platform-specific cursor for resizing the bottom-edge of a window.
            LeftEdgeResizeCursor A platform-specific cursor for resizing the left-edge of a window.
            RightEdgeResizeCursor A platform-specific cursor for resizing the right-edge of a window.
            TopLeftCornerResizeCursor A platform-specific cursor for resizing the top-left-corner of a window.
            TopRightCornerResizeCursor A platform-specific cursor for resizing the top-right-corner of a window.
            BottomLeftCornerResizeCursor A platform-specific cursor for resizing the bottom-left-corner of a window.
            BottomRightCornerResizeCursor A platform-specific cursor for resizing the bottom-right-corner of a window.
            // Changes the mouse pointer over the ScriptPanel1 to a hand with a pointing finger
            ScriptPanel1.setMouseCursor("PointingHandCursor", Colours.white, [0, 0]);
            
            mmprodM 1 Reply Last reply Reply Quote 2
            • mmprodM
              mmprod @Consint
              last edited by

              @Consint this is so helpful- thank you!

              For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
              John 3:16

              1 Reply Last reply Reply Quote 1
              • First post
                Last post

              47

              Online

              1.7k

              Users

              11.7k

              Topics

              101.9k

              Posts