HISE Logo Forum
    • Categories
    • Register
    • Login

    Custom look and feel component ID

    Scheduled Pinned Locked Moved Scripting
    laflook and feel
    43 Posts 6 Posters 2.3k 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
      last edited by

      I wonder if the issue is something to do with this loop in the drawWithGraphics function?

          g->getDrawHandler().flush();
      
          DrawActions::Handler::Iterator iter(&g->getDrawHandler());
      
          while (auto action = iter.getNextAction())
          {
      	action->perform(g_);
          }
      

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

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

        @Christoph-Hart Any ideas? Is it safe to use LAF in a project?

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

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

          Wow that was an easy one - I just forgot to initialise the timeout logic correctly when calling scripted LAF functions so it threw a timeout as soon as the execution time was bigger than ~0...

          NatanN d.healeyD 2 Replies Last reply Reply Quote 3
          • NatanN
            Natan @Christoph Hart
            last edited by

            @Christoph-Hart I reported This Execution Time Out Before 😯
            So It Was LAF Mistake? 😩

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

              @Christoph-Hart said in Custom look and feel component ID:

              Wow that was an easy one - I just forgot to initialise the timeout logic correctly when calling scripted LAF functions so it threw a timeout as soon as the execution time was bigger than ~0...

              You're on fire today!

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

              NatanN 1 Reply Last reply Reply Quote 1
              • NatanN
                Natan @d.healey
                last edited by

                @d-healey So is there Any Quick Fix?
                I'm On Bed!!!
                Do i Need To Get Up?
                Another Sleepless Night? or What?

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

                  @Natan Check github, Christoph has made a load of updates the last couple of days and just fixed the LAF issue.

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

                  NatanN 1 Reply Last reply Reply Quote 1
                  • NatanN
                    Natan @d.healey
                    last edited by

                    @d-healey 🏃🏼‍♀️🏃🏿‍♀️🏃🏼🏃🏾‍♀️🏃🏻‍♀️🏃🏾‍♀️🏃‍♀️🏃🏃🏽🏃🏾‍♂️⛹️🏾‍♂️🏇🏾⛹️🏻‍♂️⛹️🏼‍♂️⛹️🏿‍♂️🏇🏼⛹🏿️⛹️🏿‍♂️⛹️🏿‍♂️⛹️‍♀️⛹️🏻‍♀️⛹️⛹️🏻‍♂️⛹️🏻‍♂️⛹️🏼‍♂️⛹️🏿‍♂️🏇🏼🏇🏇🏽🏇🏿To The Github 👋 No Sleep Nothing, Like My 17 Past Years 🙌🙌🙌

                    1 Reply Last reply Reply Quote 1
                    • NatanN
                      Natan @d.healey
                      last edited by Natan

                      @d-healey said in Custom look and feel component ID:

                      I wonder if the issue is something to do with this loop in the drawWithGraphics function?

                          g->getDrawHandler().flush();
                      
                          DrawActions::Handler::Iterator iter(&g->getDrawHandler());
                      
                          while (auto action = iter.getNextAction())
                          {
                      	action->perform(g_);
                          }
                      

                      Thank You Sir David, For Investigating This :)

                      I Made This Thread, Reporting This Back In December
                      https://forum.hise.audio/topic/3375/execution-timed-out

                      FortuneF 1 Reply Last reply Reply Quote 0
                      • FortuneF
                        Fortune @Natan
                        last edited by Fortune

                        @Natan said in Custom look and feel component ID:

                        @Natan said in Custom look and feel component ID:

                        @Christoph-Hart I reported This Execution Time Out Before 😯
                        So It Was LAF Mistake? 😩

                        I Made This Thread, Reporting This Back In December
                        https://forum.hise.audio/topic/3375/execution-timed-out

                        Ok, but I don't understand what's the point. Lot's of people reports lot's of things, you're not the only person for this :D

                        Are you expecting a "Thank You for your report"? :D
                        Or are you expecting a "Sorry, you reported this last december but it's just been fixed"? :D :D

                        Also as I see, you write the same thing so many times, and you like to do it :) Just like your magical report, in this thread you write it again and again :D Just an advice, don't do that, it won't fix the issue or won't make you special....

                        Just be more humble and thank Christoph for this great software ;)

                        NatanN 1 Reply Last reply Reply Quote 0
                        • NatanN
                          Natan @Fortune
                          last edited by

                          @Fortune You Don't Get It :) i Was Waiting For This Fix, And With Dave's Investigation, It Fixed Now :)
                          You Don't Get It, Man :) I Was Prepared For Sleeping, And Now I'm Building The Latest Version :)
                          Yeah, I Gifted Already :)

                          FortuneF 1 Reply Last reply Reply Quote 0
                          • FortuneF
                            Fortune @Natan
                            last edited by Fortune

                            @Natan Ok after building, good night then :)
                            But again, I think actually YOU don't get it :D :D you are not the only person who wait for fixes or features ;)

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

                              I‘d say Nathan got the timeouts before it was cool...

                              NatanN 1 Reply Last reply Reply Quote 3
                              • NatanN
                                Natan @Christoph Hart
                                last edited by

                                @Christoph-Hart It was A Nightmare Christoph
                                I Tried To Explain This In Another Thread, But No One Get It At That Time 😢 I Felt Like E.T 😩
                                Thank You Legend 👏

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

                                  The text property of obj when applying LAF to combo boxes holds the text of the combo box's value, rather than the text property. This means we have no way to distinguish between different combo boxes (unless we get clever/hacky with some of the other properties). Could we get the text property of the combo box added to its obj?

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

                                  ustkU 1 Reply Last reply Reply Quote 0
                                  • ustkU
                                    ustk @d.healey
                                    last edited by

                                    @d-healey shouldn’t be hard to fix, I’ll have a look sometime today...

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

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

                                      @d-healey I just got an idea. What do you think of having a misc property for all the components, that is not linked to anything? So it would be just something we can get for any purpose we’d like, thinking of LAF customisation at the top of the list of course.
                                      So just a complementary text property... sounds cool enough?

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

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

                                        @ustk I think we should get @Christoph-Hart opinion

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

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

                                          I think it might be better to actually include the ID of the component as obj.ID - this way you can either use a lookup table or clever name mangling to figure out what path to take in the LAF function.

                                          Adding a new property seems a bit verbose to me as it pops up on every component's property editor.

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

                                            @Christoph-Hart I totally agree, but how can the ID be gathered? I tried to add it back in time but then you told me we cannot (easily?) reach the ID from a custom LAF... So I imagine it is not my level of knowledge to implement it, unfortunately 🙃
                                            I tried obj->setProperty("id", s.getComponentID());with no luck

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

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

                                            32

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.7k

                                            Posts