HISE Logo Forum
    • Categories
    • Register
    • Login

    Get "this" for current component in Global laf

    Scheduled Pinned Locked Moved General Questions
    40 Posts 4 Posters 2.4k 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.
    • 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

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - 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
          • C
            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?

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

              C 1 Reply Last reply Reply Quote 0
              • C
                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?

                https://forum.hise.audio/topic/7251/new-feature-probably-adds-full-component-access-in-laf?_=1683164586531

                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?

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

                  Christoph HartC C 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
                      • C
                        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 :)

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

                          C 1 Reply Last reply Reply Quote 1
                          • C
                            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

                            29

                            Online

                            2.0k

                            Users

                            12.6k

                            Topics

                            109.7k

                            Posts