HISE Logo Forum
    • Categories
    • Register
    • Login

    How to resize the interface?

    Scheduled Pinned Locked Moved General Questions
    8 Posts 5 Posters 411 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.
    • CyberGenC
      CyberGen
      last edited by CyberGen

      Hi,

      I'm trying to get the interface to resize with a button callback.
      So far, I've tried Content.makeFrontInterface on an if statement, which only works after recompiling. Also tried Content.setHeight(), but upon clicking the callback button, HISE crashes. refreshInterface only works with samplers and this is a wavetable based instrument.

      lil' help?
      What else can I use?

      /*	--------------------------------------
      			EXTRAS PANEL
      	--------------------------------------
      */
      
      const var EXTRAS_BTN = Content.getComponent("EXTRAS_BTN");
      
      inline function onEXTRAS_BTNControl(component, value)
      {
      	Console.print(EXTRAS_BTN.getValue());
      
      	if (EXTRAS_BTN.getValue() == 0)
      	{
      		Content.setHeight(400);
      	}
      	if (EXTRAS_BTN.getValue() == 1)
      	{
      		Content.setHeight(700);
      	}
      
      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by d.healey

        935c01fe-142a-4b9a-ae93-a68718f200e7-image.png

        This will scale the UI. You can't change the width/height though.

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

        CyberGenC 1 Reply Last reply Reply Quote 0
        • CyberGenC
          CyberGen @d.healey
          last edited by

          @d-healey Thanks David,
          The issue is that setZoomLevel, changes size of everything. I'm looking to open up the interface to show a hidden panel that exist outside the bounds of the initial interface. So I need the interface to give me more space, at its normal zoom level.

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

            @RastaChess

            I'm looking to open up the interface to show a hidden panel

            This isn't possible.

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

            CyberGenC 1 Reply Last reply Reply Quote 0
            • CyberGenC
              CyberGen @d.healey
              last edited by

              @d-healey :confounded_face:

              Thanks anyway.

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

                Although I know it's not possible to change the front interface w/h, I really wonder why it would be so dangerous to do.
                Perhaps allowing it to change after init wouldn't be so dramatic after all... Or is there a specific limitation that prevents to change the size after init, @Christoph-Hart ?

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

                DanHD 1 Reply Last reply Reply Quote 2
                • DanHD
                  DanH @ustk
                  last edited by

                  @ustk I think it's just a big painful job for Christoph to implement... That's what it sounded like when I asked him a while back

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  1 Reply Last reply Reply Quote 1
                  • lalalandsynthL
                    lalalandsynth
                    last edited by

                    It would be useful to show a keyboard for example.

                    https://lalalandaudio.com/

                    https://lalalandsynth.com/

                    https://www.facebook.com/lalalandsynth

                    https://www.facebook.com/lalalandsynth

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

                    37

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    102.0k

                    Posts