HISE Logo Forum
    • Categories
    • Register
    • Login

    Change GUI height with a button?

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 139 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.
    • FortuneF
      Fortune
      last edited by

      Can we change GUI height with a button?
      When we do that, will it crash on a compiled plugin?

      Content.makeFrontInterface(600, 500);
      
      const var Button1 = Content.getComponent("Button1");
      
      inline function onButton1Control(component, value)
      {
      	if(value)
      	    Content.makeFrontInterface(600, 500);
      	else    
      	    Content.makeFrontInterface(600, 200);
      };
      
      Content.getComponent("Button1").setControlCallback(onButton1Control);
      
      
      
      1 Reply Last reply Reply Quote 0
      • MikeBM
        MikeB
        last edited by

        noop :-)

        "One hour of trial and error can save 10 minutes of reading the manual."
        "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
        HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

        1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart
          last edited by

          Even if that would work, it's super likely to cause issues across different hosts so I would strongly recommend thinking about another solution.

          FortuneF 1 Reply Last reply Reply Quote 2
          • FortuneF
            Fortune @Christoph Hart
            last edited by

            @Christoph-Hart I understand, thank you!

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

            49

            Online

            1.7k

            Users

            11.7k

            Topics

            102.1k

            Posts