HISE Logo Forum
    • Categories
    • Register
    • Login

    GUI Scaling Not Working in Compiled Plugins

    Scheduled Pinned Locked Moved Solved Bug Reports
    17 Posts 4 Posters 518 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.
    • DabDabD
      DabDab @Matt_SF
      last edited by

      @Matt_SF Please watch my video. I have chosen allow callback to Clicks Hover & Dragging.

      Bollywood Music Producer and Trance Producer.

      Matt_SFM 1 Reply Last reply Reply Quote 0
      • Matt_SFM
        Matt_SF @DabDab
        last edited by

        @DabDab I watched it. I suggested that maybe the 'click, hover and drag' level was not sufficient but I had some time to test it and it works fine too.
        Do you have a widget or something which is covering the resize panel in the interface ?

        Develop branch
        Win10 & VS17 / Ventura & Xcode 14. 3

        DabDabD 2 Replies Last reply Reply Quote 0
        • DabDabD
          DabDab @Matt_SF
          last edited by

          @Matt_SF I have placed zoomPanel at the very last of my component stack. I am not getting any valid reason why it is not working.

          Bollywood Music Producer and Trance Producer.

          1 Reply Last reply Reply Quote 0
          • DabDabD
            DabDab @Matt_SF
            last edited by DabDab

            @Matt_SF I have found what is causing the interrupt with the GUI scaling script by @Christoph-Hart. I have Multi Tab Interface. when I am bypassing it

            //include("MultiTab.js");
            

            GUI scaling is working fine.
            The multitab Script is (minimal code e.g.)

            inline function onKeyboardControl(component, value)
            {
            	if(value)
                    {
            
            	    KeyboardPnl.showControl(1);
            		AmpEnvPnl.showControl(false);
            		FltEnvPnl.showControl(false);
            		LFOPnl.showControl(0);
            		FxPnl.showControl(false);
            		SeqPnl.showControl(false);
            		SettingsPnl.showControl(false);
                         }
            };
            
            Content.getComponent("Keyboard").setControlCallback(onKeyboardControl);
            

            What is the solution to get Multitab panel interface as wel as GUI Scaling?

            I have written GUI Scaling script in main Interface.

            Bollywood Music Producer and Trance Producer.

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

              @DabDab your if statement needs curly braces

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

              DabDabD 1 Reply Last reply Reply Quote 0
              • DabDabD
                DabDab @d.healey
                last edited by DabDab

                @d-healey No luck.. I forgot here to put it under curly braces.. Edited.

                Bollywood Music Producer and Trance Producer.

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

                  @DabDab Because it doesn't enter the statement if value == 0

                  const var somePnls = [AmpEnvPnl, FltEnvPnl, LFOPnl, FxPnl, SeqPnl, SettingsPnl];
                  
                  inline function onKeyboardControl(component, value)
                  {
                  	KeyboardPnl.showControl(value);
                  	
                  	for (p in somePnls) p.showControl(!value);
                  };
                  
                  Content.getComponent("Keyboard").setControlCallback(onKeyboardControl);
                  

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

                  DabDabD 1 Reply Last reply Reply Quote 1
                  • DabDabD
                    DabDab @ustk
                    last edited by

                    @ustk Do I need to write it on every button Callbacks?

                    Bollywood Music Producer and Trance Producer.

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

                      @DabDab I don't know your structure but when you attempt to do the same thing multiple times, there's always a way to condense/simplify your code

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

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

                        @ustk Here is my Structure just the Button and panelCode.

                        const var somePnls = [KeyboardPnl,AmpEnvPnl, FltEnvPnl, LFOPnl, FxPnl, SeqPnl, SettingsPnl];
                        
                        inline function onKeyboardControl(component, value)
                        {
                        	KeyboardPnl.showControl(value);
                        	
                        	for (p in somePnls) p.showControl(!value);
                        };
                        
                        Content.getComponent("Keyboard").setControlCallback(onKeyboardControl);
                        
                        
                        inline function onAmpEnvControl(component, value)
                        {
                        		AmpEnvPnl.showControl(value);
                        	
                        	for (p in somePnls) p.showControl(!value);
                        };
                        
                        Content.getComponent("AmpEnv").setControlCallback(onAmpEnvControl);
                        
                        
                        inline function onFltEnvControl(component, value)
                        {
                        	
                        		FltEnvPnl.showControl(value);
                        	
                        	for (p in somePnls) p.showControl(!value);
                        };
                        
                        Content.getComponent("FltEnv").setControlCallback(onFltEnvControl);
                        
                        
                        inline function onLFOControl(component, value)
                        {
                        	
                        		LFOPnl.showControl(value);
                        		for (p in somePnls) p.showControl(!value);
                        };
                        
                        Content.getComponent("LFO").setControlCallback(onLFOControl);
                        
                        
                        inline function onEffectsControl(component, value)
                        {
                        			FxPnl.showControl(value);
                        		for (p in somePnls) p.showControl(!value);
                        };
                        
                        Content.getComponent("Effects").setControlCallback(onEffectsControl);
                        
                        
                        inline function onSequencerControl(component, value)
                        {
                        			SeqPnl.showControl(value);
                        		for (p in somePnls) p.showControl(!value);
                        };
                        
                        Content.getComponent("Sequencer").setControlCallback(onSequencerControl);
                        
                        
                        inline function onSettingsControl(component, value)
                        {
                        			SettingsPnl.showControl(value);
                        		for (p in somePnls) p.showControl(!value);
                        };
                        
                        Content.getComponent("Settings").setControlCallback(onSettingsControl);
                        

                        But I am getting Error...
                        When clicking on Buttons.
                        Mu Buttons are RadioGroup Buttons

                        Bollywood Music Producer and Trance Producer.

                        d.healeyD ustkU 2 Replies Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @DabDab
                          last edited by d.healey

                          @DabDab

                          const var somePnls = [KeyboardPnl,AmpEnvPnl, FltEnvPnl, LFOPnl, FxPnl, SeqPnl, SettingsPnl];

                          What is KeyboardPnl? Is it a variable name?

                          AmpEnvPnl.showControl(value);
                          	
                          for (p in somePnls) p.showControl(!value);
                          

                          Since AmpEnvPnl is within somePnlsit will always be hidden.

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

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

                            @DabDab If it's just to switch between panels then one callback with 2 lines is enough
                            Or you'll have to provide us with a more detailed snippet...

                            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ExyOgY0B3bmbZd5HXBpPN72kvsAiKYngqvVobGmraGXDWFUH72vSkwtNYbkwtyLhRYgZ06BKKX6FV49EZ.NIKlMyCFRDjocQEEwAbjNs6fRg4ldWXna4+sPs1kiY2M.yda.lmtAX9tM.yy1.LOeCv7hUhwMx52maUokoCfhgGUzMCiORxfaVE2BQ+CL7E13B
                            

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

                            1 Reply Last reply Reply Quote 1
                            • DabDabD
                              DabDab @d.healey
                              last edited by

                              @d-healey KeyboardPnl, AmpEnvPnl all are panels.

                              Bollywood Music Producer and Trance Producer.

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

                                @DabDab In the interface designer they are, but what are they in that bit of script you posted?

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

                                DabDabD 1 Reply Last reply Reply Quote 0
                                • DabDabD
                                  DabDab @d.healey
                                  last edited by

                                  @d-healey

                                  @ustk said in GUI Scaling Not Working in Compiled Plugins:

                                  @DabDab If it's just to switch between panels then one callback with 2 lines is enough
                                  Or you'll have to provide us with a more detailed snippet...

                                  HiseSnippet 947.3ocyV09ZaaDF+NGekJs0xJzOWNxmjgLicRWagRndwIoX1RhYtqrwXTNKcJ9HR2It6TRMi.6Os8k9+S+OX64jjsUZbbqMrwzGD54keO528xyKC0pPtwnzHr2allwQ3ulLZpzNo+DlPhFbHB+PxILikqokpNXZFyX3QHLdqW6Tf8ZhJd93qNfkvjg7EpPn2pDg7eTjJrKzNr2OHRRNlEweiHsl2Os2fPkruJQkC7YKRGTFK7B147SYN2ZPP36cTjvpzirLK2.9bfJZ5nIpqjk9+VgQLNg6D5hFAApTMp+DQRzvYqUCBgaNbwJeqxU9iImHhDy0uXG3aJLPWfn9d.twpnT20fR3ZTpYIkdDYTnVjYWXwwmuhLPBGHwLXqtNUJ8E03CMH8UfGRa6T1E7i0fvbDAOqSmcnvqVuz22G1uMV5kLMcrUZn6S+sYHOma6qRyTRPHX6CxsVkr61s1wmdqmUAY20Gxda252eYcpkISVA0Fxj7j0hYEH1csQTwKeegLQH4z3bYnUnjTkzs44PpUIAgyfsCP9jbdK++v2SDSCpj7.QuXklFjQExhEGnzyKqsAt0LKJN0sExH96OKNHqEc+8KNglqZ9eoEbN5cs+0.yJB5XWPct1hNtswsJJBXeVRxXHaJ3FjEvVaUbpxxOSFTPX+q8oepo33kZqJVIb8RM6xw0qBXfLOcLWWe6x4HjDbyLq68kkYEVdBVyQkbfTXOKiWIerJIxkw39914gnpq.vW+7fCYVlK0rRG3WFWaEN5fOjeITaqLQ0ibH2bgUkAzb98FPssv5CqRiKueiDQN.UoTn2un.3u1a5bg+j06JQjcBBSvQf7Dt37IVmzS.IMKRndsVkmUtLLrK4CjC0b3D2UJPXNQkBTfogHhafVKNsacNI++Am1qFm9qq9ufSMK4zClUB1UBnfR2mTVx4tN4Phd0iC4yDm6b2Fhykythi2ZcB4ctY8Ig71MbfVcpn7Dl8l8+bM5qL.ot2noiqwhzHrSqOHvZzTryJaJ9kRwGQFJrgSVNGarDNBI0+avwpQId.4n3XdncAAaRN9W1z4F9L+9eRkaExyOgY0B3bmbZd5HXBpPN72kvsAiKYngqvVobGmraGXDWFUH72vSkwtNYbkwtyLhRYgZ06BKKX6FV49EZ.NIKlMyCFRDjocQEEwAbjNs6fRg4ldWXna4+sPs1kiY2M.yda.lmtAX9tM.yy1.LOeCv7hUhwMx52maUokoCfhgGUzMCiORxfaVE2BQ+CL7E13B
                                  

                                  Solved my problem... Got the learning material from here... Thank you @ustk

                                  Bollywood Music Producer and Trance Producer.

                                  1 Reply Last reply Reply Quote 2
                                  • DabDabD DabDab marked this topic as a question on
                                  • DabDabD DabDab has marked this topic as solved on
                                  • First post
                                    Last post

                                  61

                                  Online

                                  1.7k

                                  Users

                                  11.7k

                                  Topics

                                  102.1k

                                  Posts