HISE Logo Forum
    • Categories
    • Register
    • Login

    Please help me, how to connect the button in the webview with the Button component of HISE

    Scheduled Pinned Locked Moved General Questions
    2 Posts 1 Posters 112 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.
    • CatABCC
      CatABC
      last edited by

      I use a webview component, which loads an html file with a button in it. When I click the button in the webview, I hope it can perform the same operation as the Button component of HISE. How can I do it?

      //I am a new student at HISE._
      //Windows11 & MacOS Ventura 13.6.7_

      CatABCC 1 Reply Last reply Reply Quote 0
      • CatABCC
        CatABC @CatABC
        last edited by

        @CatABC
        OK, I think I figured it out. Using webview requires communication.

        wv.bindCallback("wvfunctionNmae", function(args)
        
        inline function onButton1Control(component, value)
        {
                    wv.callFunction("wvfunctionNmae", {
                       
                    });          
        
        };
        Content.getComponent("Button1").setControlCallback(onButton1Control);
        

        //I am a new student at HISE._
        //Windows11 & MacOS Ventura 13.6.7_

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

        20

        Online

        2.0k

        Users

        12.6k

        Topics

        109.7k

        Posts