Forum

    • Register
    • Login
    • Search
    • Categories

    button for sharing

    General Questions
    7
    15
    1534
    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.
    • hisefilo
      hisefilo last edited by

      Is there a way to add a link to a website/Facebook or any other on the front interfase?
      Looking to add some marketing to my VIs

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

        @hisefilo Not yet but it has been talked about before

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

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

          @d-healey thanks!!! Will be good for many usages.

          1 Reply Last reply Reply Quote 0
          • staiff
            staiff last edited by

            website is under the "about" floatingtile
            but no social share...

            Excuse me i'm French.

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

              @staiff said in button for sharing:

              website is under the "about" floatingtile

              But can you add a clickable link to your interface?

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

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

                @d-healey no it's not clickable in floatingtitle.
                But is there a way to make clickable area with a panel or image with java code?
                I couldn't find the solution on the forum.

                develop Branch / XCode 13.1
                macOS Monterey / M1 Max

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

                  There you go 🙂

                  https://github.com/christophhart/HISE/commit/a26722b1f4491bb026b15e61c441d66a04a1ce5d

                  d.healey orange hisefilo 4 Replies Last reply Reply Quote 5
                  • d.healey
                    d.healey @Christoph Hart last edited by d.healey

                    @christoph-hart You really should add a paypal donation button somewhere. Or setup a patreon page.

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

                    ulrik 1 Reply Last reply Reply Quote 5
                    • orange
                      orange @Christoph Hart last edited by orange

                      @christoph-hart said in button for sharing:

                      There you go 🙂

                      https://github.com/christophhart/HISE/commit/a26722b1f4491bb026b15e61c441d66a04a1ce5d

                      Incredible, great thank you so much Christoph, what a speed coding art!!!! 👑 👐 🙌 🤘 😍 😎

                      I agree with @d-healey

                      develop Branch / XCode 13.1
                      macOS Monterey / M1 Max

                      1 Reply Last reply Reply Quote 0
                      • orange
                        orange @Christoph Hart last edited by

                        @christoph-hart

                        I've tried to use Engine.openWebsite(); with a button like below but I couldn't. How can we do that?

                        const var GoToWebSite_Button = Content.getComponent("GoToWebSite_Button");
                        
                        
                        inline function onGoToWebSite_ButtonControl(component, value)
                        {
                        	GoToWebSite_Button.Engine.openWebsite(https://www.orange.com);
                        };
                        
                        Content.getComponent("GoToWebSite_Button").setControlCallback(onGoToWebSite_ButtonControl);
                        
                        

                        develop Branch / XCode 13.1
                        macOS Monterey / M1 Max

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

                          @d-healey said in button for sharing:

                          @christoph-hart You really should add a paypal donation button somewhere. Or setup a patreon page.

                          I agree!

                          Hise Develop branch
                          MacOs 12.4, Xcode 13.0
                          http://musikboden.se

                          1 Reply Last reply Reply Quote 0
                          • Dominik Mayer
                            Dominik Mayer last edited by Dominik Mayer

                            @orange
                            no need to reference the button before the Engine 🙂
                            will suffice:

                            const var Button1 = Content.getComponent("Button1");
                            
                            inline function onButton1Control(component, value)
                            {
                                Engine.openWebsite("http://www.rbemis.com/orange/index.html");
                            };
                            
                            Content.getComponent("Button1").setControlCallback(onButton1Control);
                            
                            

                            Here a variant with a Panel with written text:
                            (u have to create a Panel Component named LinkPanel with height ~100/20px in the Interface designer and set allowCallbacks to "Clicks only" )

                            const var LinkPanel = Content.getComponent("LinkPanel");
                            
                            LinkPanel.setPaintRoutine(function(g)
                            {
                                g.setColour(Colours.cornflowerblue);
                                g.drawText("website.com", [0,0,100,15]);
                            });
                            
                            LinkPanel.setMouseCallback(function(event)
                            {
                            	if (event.doubleClick)
                            	  Engine.openWebsite("http://www.rbemis.com/orange/index.html");
                            });
                            

                            for more mouseCallback behaviours you can check: http://hise.audio/manual/ScriptPanel.php#122callbackeventproperties

                            greets,
                            d

                            orange 1 Reply Last reply Reply Quote 0
                            • hisefilo
                              hisefilo @Christoph Hart last edited by hisefilo

                              @christoph-hart wow u rock!!! Hoping to do some "share for activate" or something. Donation is also a good idea. Maybe setting split payment so u can grab a % of it (Stripe?)

                              1 Reply Last reply Reply Quote 0
                              • orange
                                orange @Dominik Mayer last edited by

                                @dominik-mayer Thank you so much, these are great solutions.

                                develop Branch / XCode 13.1
                                macOS Monterey / M1 Max

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

                                  Well I'll think about that Patreon thingie 🙂

                                  @Dominik-Mayer: You don't need to require a Panel to have certain properties, just set it via scripting calls:

                                  const var LinkPanel = Content.getComponent("LinkPanel");
                                  
                                  LinkPanel.set("width", 100);
                                  LinkPanel.set("height", 20);
                                  LinkPanel.set("allowCallbacks", "Clicks only");
                                  
                                  LinkPanel.setPaintRoutine(function(g)
                                  {
                                      g.setColour(Colours.cornflowerblue); // LOL
                                  
                                      // This method is bad (it squashes the text if the height doesn't match...
                                      //g.drawText("website.com", [0,0,100,15]);
                                  
                                      // Use this method instead
                                      g.drawAlignedText("website.com", [0, 0, this.getWidth(), this.getHeight()], "centred");
                                  });
                                  
                                  LinkPanel.setMouseCallback(function(event)
                                  {
                                  	if (event.doubleClick)
                                  	  Engine.openWebsite("http://www.rbemis.com/orange/index.html");
                                  });
                                  
                                  1 Reply Last reply Reply Quote 1
                                  • First post
                                    Last post

                                  11
                                  Online

                                  849
                                  Users

                                  5.7k
                                  Topics

                                  52.8k
                                  Posts