HISE Logo Forum
    • Categories
    • Register
    • Login

    Dynamically Resize with Content.setHeight()?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 216 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.
    • E
      ericchesek
      last edited by ericchesek

      Hi all,

      Is it possible to resize a plugin interface using Content.setHeight() or Content.setWidth()? I just tried making a simple script that sets the interface height based on the value of a button, but it keeps crashing HISE.

      Simply add a button to the interface, then use the following script.

      Content.makeFrontInterface(600, 600);
      
      inline function onButton1Control(component, value)
      {
      	value ? Content.setHeight(600) : Content.setHeight(500);
      };
      
      Content.getComponent("Button1").setControlCallback(onButton1Control);
      
      

      To be clear, I am not looking for a UI zoom. I want to be able to show and hide the floating tile keyboard. If the keyboard is hidden, I want the interface height to shrink. If the keyboard is shown, I want the interface height to grow to accommodate the keyboard.

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

        The UI height/width is fixed.

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

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

        35

        Online

        1.7k

        Users

        11.7k

        Topics

        102.0k

        Posts