HISE Logo Forum
    • Categories
    • Register
    • Login

    Arc slider

    Scheduled Pinned Locked Moved General Questions
    23 Posts 5 Posters 715 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 @ulrik
      last edited by

      @ulrik Amazing! Forgot the function has override! 😎

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

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @ustk
        last edited by

        @ustk said in Arc slider:

        @ulrik Amazing! Forgot the function has override! 😎

        Yes I had also forgot it, but I found it in the documentation.
        So, what does "override" really means?

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

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

          @ulrik A function override is the concept of writing the same function but for different parameters (type and or number of arguments). The compiler selects which one to use.

          Although here it might not be a function override contrary to what I said, but probably more a simple check of the array in one unique function.

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

          ulrikU U 3 Replies Last reply Reply Quote 1
          • ulrikU
            ulrik @ustk
            last edited by

            @ustk thanks!

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            U 2 Replies Last reply Reply Quote 0
            • U
              udalilprofile @ustk
              last edited by

              @ustkHello. I tried to set a gradient, but instead of an arch I got default buttons

              1 Reply Last reply Reply Quote 0
              • U
                udalilprofile @ulrik
                last edited by

                @ulrikHello. An attempt to apply the gradient failed. I got the buttons. default)

                1 Reply Last reply Reply Quote 0
                • U
                  udalilprofile @ustk
                  last edited by

                  @ustk 11111.png

                  1 Reply Last reply Reply Quote 0
                  • U
                    udalilprofile @ulrik
                    last edited by

                    @ulrik 11111.png

                    ulrikU 2 Replies Last reply Reply Quote 0
                    • ulrikU
                      ulrik @udalilprofile
                      last edited by ulrik

                      @udalilprofile if it's inside a laf, you need to get the width and height from the obj.area
                      "this" will not work

                      g.setGradientFill([Colours.blue, 0, 0, Colours.red, obj.area[2], obj.area[3]]);
                      

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      1 Reply Last reply Reply Quote 0
                      • ulrikU
                        ulrik @udalilprofile
                        last edited by

                        @udalilprofile when working with look and feel functions, it's very informative to

                        Console.print(trace(obj));
                        

                        you will get all the information that is used inside.

                        Same inside a keyPressCallback, use Console.print(trace(obj));
                        or inside a mouseCallback, Console.print(trace(event));

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

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

                        27

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.7k

                        Posts