Forum
    • Categories
    • Register
    • Login

    setMouseCursor scale

    Scheduled Pinned Locked Moved Feature Requests
    9 Posts 5 Posters 885 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...

      Hise made me an F5 dude, any other app just suffers...

      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

        Hise made me an F5 dude, any other app just suffers...

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David 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

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          ustkU 1 Reply Last reply Reply Quote 2
          • ustkU
            ustk @David 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!

            Hise made me an F5 dude, any other app just suffers...

            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?

                  creating user interfaces: www.vst-design.com
                  founder @prototype.audio https://www.prototype.audio/

                  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

                      25

                      Online

                      2.2k

                      Users

                      13.4k

                      Topics

                      116.5k

                      Posts