HISE Logo Forum
    • Categories
    • Register
    • Login

    Get "this" for current component in Global laf

    Scheduled Pinned Locked Moved General Questions
    40 Posts 4 Posters 1.6k 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.
    • d.healeyD
      d.healey @ulrik
      last edited by

      @ulrik

      I can't get the local look and feel to work, I guess I'm doing something wrong...

      HiseSnippet 840.3ocsU01aSCCD1taFnEP.B9ADsOUjFUs7x.IDhs0thpXaTQAD7Ijqy0VScribbnTg3+E+r3e.bNocIk0gPUP9fUt64NmGe44N22ZDPRhwRnUey7XfPuFavbsaR6IbolzqCgda1XkYHWoLlobc3H.TjCmGySRfPBkt0K7ARqtMI64GO+PthqEPgKB4cFo.NVFIcEd6u+KkJUWdH7FYTone398DFcaixjhjZKVSRLWLkOFNk6CqBiPuzQgRmwNvwcPBgt8glv4ClXloyi+cxD4PE3MZQFfaTt6tFUnmwduj1Sjpv9KO7IDbW5WTJ1JuTbG1IxP4Y9KJI2LCHnHix0CZkUo2VqPuVkoWyRzaMThVhRamSoawFHrxXWAhmOWk0S6.6HNV1KSk7XIU9Nk01fQncMh3SgtVz3rLpuWyl6FfK28o0pgk9DWfhOJ3YAKSQXA7jbrQvUGiZfCzgcQMPce3XfMrvXYBtWcS0BmznquSnkOquINM9DPm1yAQ6ravnkni2MvL7S2s1WqUE+.IFEzH1J0t5NqmLdLbm+MLzaCYH5+aEj7ybaPetFTkn5Xv01DEaznQ8cxP2AyH6kFIf6bGB7.f3KIWfQepwAuRWOie09VsfeGZzn0h4If0nTfcsvdIt8OkXccZzPvtKdpTovYAh+2WULwtXwTYstHudTJPitmV5dULnunN.xhhH91a60g63dE3BeXbwf0I8Tf1A9L1NmqGqx5.IScl3rXWT4Izq3xPu9R0pu9Sjnl7xr72+RQCub+4EFeX+YxP2jxNl.xwSbk83mEMqMtNDmLfL5FrCTpfBGwk0dI9IXXsy0ple89YqO.m+btdKrq1Dlp3tUa08y2V.f+xVo+x2CoSjt4km+8Oq++ukh2h0W5DSVOGqrFNh+X+evwESMuN6nQi.gqffay599+OiHIu1j5j5wmvcVIpoXmlFM.u3P.3WWiBMeKCshWbma2za6q.C.cXlwOwmEfs71zEfsVBRh3Bq4ih7FU+b4qj4A4jN6JoprS71AsHYMuXdrlMZRhvqH9nP3O92C62VeN2eCx4AaPNObCx4QaPN6sA473MHmm7Gywe67AoNSTd6.5n+QYSznzizbTYkoBI+BPPUgGs
      

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

      ulrikU 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @ulrik
        last edited by

        @ulrik Why do you need the value in the laf? Is it for styling purposes?

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

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey that's not working in my Hise

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

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

            @d-healey said in Get "this" for current component in Global laf:

            @ulrik Why do you need the value in the laf? Is it for styling purposes?

            Yes

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

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

              @ulrik said in Get "this" for current component in Global laf:

              @d-healey that's not working in my Hise

              Which version are you using?

              @ulrik said in Get "this" for current component in Global laf:

              @d-healey said in Get "this" for current component in Global laf:

              @ulrik Why do you need the value in the laf? Is it for styling purposes?

              Yes

              Well if you have the list of items in an array and you know what the selected text is, you could use indexOf to find the value.

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

              1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @d.healey
                last edited by

                @d-healey said in Get "this" for current component in Global laf:

                @ulrik

                I can't get the local look and feel to work, I guess I'm doing something wrong...

                HiseSnippet 840.3ocsU01aSCCD1taFnEP.B9ADsOUjFUs7x.IDhs0thpXaTQAD7Ijqy0VScribbnTg3+E+r3e.bNocIk0gPUP9fUt64NmGe44N22ZDPRhwRnUey7XfPuFavbsaR6IbolzqCgda1XkYHWoLlobc3H.TjCmGySRfPBkt0K7ARqtMI64GO+PthqEPgKB4cFo.NVFIcEd6u+KkJUWdH7FYTone398DFcaixjhjZKVSRLWLkOFNk6CqBiPuzQgRmwNvwcPBgt8glv4ClXloyi+cxD4PE3MZQFfaTt6tFUnmwduj1Sjpv9KO7IDbW5WTJ1JuTbG1IxP4Y9KJI2LCHnHix0CZkUo2VqPuVkoWyRzaMThVhRamSoawFHrxXWAhmOWk0S6.6HNV1KSk7XIU9Nk01fQncMh3SgtVz3rLpuWyl6FfK28o0pgk9DWfhOJ3YAKSQXA7jbrQvUGiZfCzgcQMPce3XfMrvXYBtWcS0BmznquSnkOquINM9DPm1yAQ6ravnkni2MvL7S2s1WqUE+.IFEzH1J0t5NqmLdLbm+MLzaCYH5+aEj7ybaPetFTkn5Xv01DEaznQ8cxP2AyH6kFIf6bGB7.f3KIWfQepwAuRWOie09VsfeGZzn0h4If0nTfcsvdIt8OkXccZzPvtKdpTovYAh+2WULwtXwTYstHudTJPitmV5dULnunN.xhhH91a60g63dE3BeXbwf0I8Tf1A9L1NmqGqx5.IScl3rXWT4Izq3xPu9R0pu9Sjnl7xr72+RQCub+4EFeX+YxP2jxNl.xwSbk83mEMqMtNDmLfL5FrCTpfBGwk0dI9IXXsy0ple89YqO.m+btdKrq1Dlp3tUa08y2V.f+xVo+x2CoSjt4km+8Oq++ukh2h0W5DSVOGqrFNh+X+evwESMuN6nQi.gqffay599+OiHIu1j5j5wmvcVIpoXmlFM.u3P.3WWiBMeKCshWbma2za6q.C.cXlwOwmEfs71zEfsVBRh3Bq4ih7FU+b4qj4A4jN6JoprS71AsHYMuXdrlMZRhvqH9nP3O92C62VeN2eCx4AaPNObCx4QaPN6sA473MHmm7Gywe67AoNSTd6.5n+QYSznzizbTYkoBI+BPPUgGs
                

                This snippets Console.print returns nothing here, I'm on a develop build from April 3, what commit do you use?

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

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

                  @ulrik said in Get "this" for current component in Global laf:

                  This snippets Console.print returns nothing here, I'm on a develop build from April 3, what commit do you use?

                  Oh you're right! Looks like there is a bug - @Christoph-Hart

                  What about using a combobox?

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

                  ulrikU 2 Replies Last reply Reply Quote 0
                  • ulrikU
                    ulrik @d.healey
                    last edited by

                    @d-healey said in Get "this" for current component in Global laf:

                    @ulrik said in Get "this" for current component in Global laf:

                    This snippets Console.print returns nothing here, I'm on a develop build from April 3, what commit do you use?

                    Oh you're right! Looks like there is a bug - @Christoph-Hart

                    What about using a combobox?

                    I would like to avoid that 😱

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

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

                      @ulrik Isn't it the same from a user's point of view?

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

                      ulrikU 1 Reply Last reply Reply Quote 0
                      • ulrikU
                        ulrik @d.healey
                        last edited by

                        @d-healey So the local look and feel didn't work for you either?

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

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

                          @ulrik No it doesn't get triggered for me.

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

                          1 Reply Last reply Reply Quote 0
                          • ulrikU
                            ulrik @d.healey
                            last edited by

                            @d-healey said in Get "this" for current component in Global laf:

                            @ulrik Isn't it the same from a user's point of view?

                            Yes maybe, but I have to rearrange a lot...

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

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

                              @ulrik Aha I see :)

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

                              ulrikU 1 Reply Last reply Reply Quote 0
                              • ulrikU
                                ulrik @d.healey
                                last edited by

                                @d-healey thank you for taking the time.

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

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

                                  Why aren't you using a local look and feel? It's better and faster if you don't have to lookup the id and branch, but just assign each component the look and feel function that it needs.

                                  d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @Christoph Hart
                                    last edited by d.healey

                                    @Christoph-Hart said in Get "this" for current component in Global laf:

                                    Why aren't you using a local look and feel? It's better and faster if you don't have to lookup the id and branch, but just assign each component the look and feel function that it needs.

                                    Scroll up :) Local LAF has a bug and doesn't work here.

                                    Also - https://forum.hise.audio/topic/7533/local-laf-is-broken

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

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

                                      @Christoph-Hart said in Get "this" for current component in Global laf:

                                      Why aren't you using a local look and feel? It's better and faster if you don't have to lookup the id and branch, but just assign each component the look and feel function that it needs.

                                      Yes I would but, as David says it seems to be broken.

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

                                      1 Reply Last reply Reply Quote 0
                                      • clevername27C
                                        clevername27 @ulrik
                                        last edited by clevername27

                                        @ulrik @d-healey I wrote and posted a patch a while back that takes care of all this.

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

                                          @clevername27 Got a link?

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

                                          clevername27C 1 Reply Last reply Reply Quote 0
                                          • clevername27C
                                            clevername27 @d.healey
                                            last edited by clevername27

                                            @d-healey It's in one of my forum posts, I don't remember which. A search should do it? Let me know.

                                            EDIT: This was the thread, but it doesn't seem to start at the first post?

                                            Link Preview Image
                                            New Feature (Probably?) Adds Full Component Access in LAF

                                            There's didn't seem a way (that I can see) to access a component's properties directly when referenced in an LAF function—you can only use LAF-specific ones...

                                            favicon

                                            Forum (forum.hise.audio)

                                            Here ya go –

                                            Screenshot 2023-05-03 at 9.15.05 PM.png

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            14

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.4k

                                            Posts