Forum

    • Register
    • Login
    • Search
    • Categories

    Change GUI height with a button?

    General Questions
    3
    4
    67
    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.
    • Fortune
      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
      • MikeB
        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 Hart
          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.

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

            @Christoph-Hart I understand, thank you!

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

            17
            Online

            1.1k
            Users

            6.8k
            Topics

            62.3k
            Posts