Forum
    • Categories
    • Register
    • Login

    Get "this" for current component in Global laf

    Scheduled Pinned Locked Moved General Questions
    40 Posts 4 Posters 3.7k 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 @David 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.6.1, Xcode 16.2
      http://musikboden.se

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @ulrik
        last edited by

        @ulrik Aha I see :)

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

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

          @d-healey thank you for taking the time.

          Hise Develop branch
          MacOs 15.6.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.

            David HealeyD ulrikU 2 Replies Last reply Reply Quote 0
            • David HealeyD
              David Healey @Christoph Hart
              last edited by David 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.6.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.

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

                      David HealeyD 1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David 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 @David 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.6.1, Xcode 16.2
                            http://musikboden.se

                            1 Reply Last reply Reply Quote 0
                            • C
                              clevername27 @David Healey
                              last edited by

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

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

                                  32

                                  Online

                                  2.1k

                                  Users

                                  13.1k

                                  Topics

                                  113.2k

                                  Posts