HISE Logo Forum
    • Categories
    • Register
    • Login

    setMouseCursor scale

    Scheduled Pinned Locked Moved Feature Requests
    9 Posts 5 Posters 445 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.
    • ustkU
      ustk
      last edited by

      @Christoph-Hart Is there a way to add a scaling parameter to this API?
      It is barely usable as it is, it seems to be doubled or even more...

      Can't help pressing F5 in the forum...

      1 Reply Last reply Reply Quote 0
      • ustkU
        ustk
        last edited by

        @Christoph-Hart Noticed that when hovering a panel that is inside another one (that has a mouseCursor set), the cursor doesn't display back to normal.
        In other words, the custom cursor is shown even when hovering a child panel. But it works if the panel on the top isn't a child

        Can't help pressing F5 in the forum...

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @ustk
          last edited by

          Looks like the scaling is hardcoded, would be nice to be able to set this.

          82099dd0-62d5-4e64-8cb7-61351c3cbbed-image.png

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          ustkU 1 Reply Last reply Reply Quote 2
          • ustkU
            ustk @d.healey
            last edited by ustk

            @d-healey Oh nice! I haven't found it :)
            I found a way to reduce its size by adding a subPath to the mouse path...
            But yeah, having it accessible from script would be very nice!

            Can't help pressing F5 in the forum...

            Oli UllmannO 1 Reply Last reply Reply Quote 1
            • Oli UllmannO
              Oli Ullmann @ustk
              last edited by

              @ustk Hello ustk,

              I have the same problem right now. You wrote that your solution was to add a subPath to the MousePath. Can you explain how you did that? In HISE? Or in a graphics program? I have no idea at all... :-(

              Thank you very much and all the best
              Oli

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

                @Oli-Ullmann You can call startNewSubPath() without actually drawing anything afterwards and it will change the bounding box of the path. This is super useful for keeping a consistent path size and I'm using that all the time (eg. when creating knob arcs etc).

                const var p = Content.createPath();
                
                p.startNewSubPath(0.0, 0.0);
                p.startNewSubPath(1.0, 1.0);
                p.addEllipse([0.4, 0.4, 0.2, 0.2]);
                

                06a5c542-b536-43f5-947b-ba6579277db9-image.png

                StraticahS Oli UllmannO 2 Replies Last reply Reply Quote 2
                • StraticahS
                  Straticah @Christoph Hart
                  last edited by

                  @Christoph-Hart is this usable in laf paint routines?

                  building user interfaces in HISE :)
                  web: www.vst-design.com

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

                    @Straticah Sure.

                    1 Reply Last reply Reply Quote 1
                    • Oli UllmannO
                      Oli Ullmann @Christoph Hart
                      last edited by

                      @Christoph-Hart I will try this. Thank you very much!

                      Und guten Rutsch! :-)

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

                      50

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.9k

                      Posts