Dynamically Resize with Content.setHeight()?
-
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.
-
The UI height/width is fixed.