HISE Logo Forum
    • Categories
    • Register
    • Login

    Expandable GUI

    Scheduled Pinned Locked Moved General Questions
    76 Posts 19 Posters 5.6k 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.
    • clevername27C
      clevername27 @DanH
      last edited by

      @DanH 🤣

      1 Reply Last reply Reply Quote 0
      • A
        aaronventure @ulrik
        last edited by

        @ulrik So the implementation is dead simple: create a broadcaster with width and height as arguments, then call Content.makeFrontInterface whenever you want to change the interface size.

        Minor epilepsy warning in Reaper, though: when you size it down, the area delta flashes white for a few frames. I guess this is DAW-specific. I'd still be wary of using this for standard panel switching if the user has to endure flashing every time they switch the panels.

        d.healeyD ? 2 Replies Last reply Reply Quote 3
        • d.healeyD
          d.healey @aaronventure
          last edited by

          @aaronventure You can use Content.setHeight() and Content.setWidth() - perhaps that will avoid the flashing issue?

          I'm just looking at the example snippet from Christoph for this.

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

          A 1 Reply Last reply Reply Quote 1
          • A
            aaronventure @d.healey
            last edited by

            @d-healey I think it's Reaper's GUI framework from last century. In Reaper, the plugin GUI floats inside the plugin window (you can drag and scale the window beyond the plugin's range, and the plugin won't rescale, you'll just get the creamy white Reaper GUI canvas... you can also scale it down to hide the plugin window), so when the interface size changes, it takes a few frames for it to adjust its canvas to the new interface size.

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

              Where is the Expandable GUI Example ? Any Snippet Please .

              Bollywood Music Producer and Trance Producer.

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

                @DabDab snippet browser in HISE

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

                1 Reply Last reply Reply Quote 2
                • ?
                  A Former User @aaronventure
                  last edited by A Former User

                  @aaronventure said in Expandable GUI:

                  @ulrik So the implementation is dead simple: create a broadcaster with width and height as arguments, then call Content.makeFrontInterface whenever you want to change the interface size.

                  Minor epilepsy warning in Reaper, though: when you size it down, the area delta flashes white for a few frames. I guess this is DAW-specific. I'd still be wary of using this for standard panel switching if the user has to endure flashing every time they switch the panels.

                  @aaronventure So this is not working properly in Reaper, right? Have you also tried on the other DAWs too?

                  @Christoph-Hart Any ideas?

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    aaronventure @A Former User
                    last edited by

                    @harris-rosendahl It's working properly, it's just Reaper. Read my previous message.

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

                      I'm not seeing any issue here in Reaper (on Windows)

                      Peek 2024-08-21 14-55.gif

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

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

                        @DabDab said in Expandable GUI:

                        Where is the Expandable GUI Example ? Any Snippet Please .

                        Okay, Here I have got it. here is the simple code..

                        inline function onResizeButtonControl(component, value)
                        {
                        	Content.setHeight(100 + value * 100);
                        };
                        
                        Content.getComponent("ResizeButton").setControlCallback(onResizeButtonControl);
                        

                        Bollywood Music Producer and Trance Producer.

                        W 1 Reply Last reply Reply Quote 1
                        • W
                          WepaAudio @DabDab
                          last edited by

                          @DabDabok, so I just copied your code in an empty project with a button named ( ResizeButton ) when I compile the canvas get reduced I cant see the button, so I go to the added code and sett the high,( Content.setHeight(100 + value * 100);
                          I compile and when I press the button it crash, is this works on Hise 4 and up? im on Hise 3.6.2, thanx

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

                            @WepaAudio You need to be using the develop branch

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

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

                              @WepaAudio said in Expandable GUI:

                              @DabDabok, so I just copied your code in an empty project with a button named ( ResizeButton ) when I compile the canvas get reduced I cant see the button, so I go to the added code and sett the high,( Content.setHeight(100 + value * 100);
                              I compile and when I press the button it crash, is this works on Hise 4 and up? im on Hise 3.6.2, thanx

                              You need HISE 4.0 for that. Now it's time to upgrade from 3.6.x to 4.0 if you didn't customize too much of the source code.

                              Bollywood Music Producer and Trance Producer.

                              A W 2 Replies Last reply Reply Quote 0
                              • A
                                aaronventure @DabDab
                                last edited by

                                @DabDab said in Expandable GUI:

                                You need HISE 4.0 for that.

                                This mean little; you need a commit from Aug 7 '24 or later.

                                1 Reply Last reply Reply Quote 1
                                • W
                                  WepaAudio @DabDab
                                  last edited by

                                  @DabDab thanx, as soon I finish my current plug in I will do,im almost done im afraid I mess things up.

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

                                  51

                                  Online

                                  1.7k

                                  Users

                                  11.7k

                                  Topics

                                  102.1k

                                  Posts