HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF affects Module Tree GUI

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 261 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.
    • andrei sA
      andrei s
      last edited by andrei s

      Hello!

      It's possible to prevent the LAF code from affecting the GUI of HISE modules in the Module Tree?

      After adding my LAF code, the modules GUI disappear and I'm unable to make any modifications.

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

        @problema Global LAF affects everything in Hise
        This is partly why LocalLAF arrived (only components that are set to a local LAF are modified)

        So transform your global LAF into local ones:

        const var myLocalLAF = Content.createLocalLookAndFeel();
        myComponent.setLocalLookAndFeel(myLocalLAF); // you can set LAF to multiple components using a loop instead
        
        myLocalLAF.registerFunction("drawRotarySlider", function(g, obj)
        {
           // Your LAF
        });
        

        Note that you can create as many local LAFs as you want if, for instance, you need different knobs LAFs

        Then go to View/Reset custom Look And Feel so all previous global LAF are reset

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

        andrei sA 1 Reply Last reply Reply Quote 1
        • andrei sA
          andrei s @ustk
          last edited by

          @ustk thank's a lot!

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

          14

          Online

          1.7k

          Users

          11.8k

          Topics

          102.3k

          Posts