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.
    • 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
                              • d.healeyD
                                d.healey @clevername27
                                last edited by

                                @clevername27 Does this fix the problem of local laf not working?

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

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

                                  @d-healey It's not not working, it just doesn't propagate the drawPopupItem method to the popupmenu (which is a different component).

                                  I'll need to manually propagate the look and feel to the popup menu, I'll check how to approach this best...

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

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

                                    I'll need to manually propagate the look and feel to the popup menu, I'll check how to approach this best...

                                    👍

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

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

                                      @d-healey Are you referring to just the pop-up component? (I'm not familiar with the problem you describe.)

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

                                        @clevername27 Local LAF for the popup function doesn't work when applied to panels. Looks like Christoph is on it :)

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

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

                                          @d-healey Got ya - I was posting the code to get the component ID in an LAF function.

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

                                          22

                                          Online

                                          1.7k

                                          Users

                                          11.8k

                                          Topics

                                          102.4k

                                          Posts